Re: freeing a static after one use only?

From: Jakub Jelinek (jakub@redhat.com)
Date: Fri Feb 18 2000 - 05:13:20 EST


On Fri, Feb 18, 2000 at 07:05:17AM +0100, Mike Galbraith wrote:
> On Thu, 17 Feb 2000, Peter T. Breuer wrote:
>
> > I have a large static initialized array that that is compiled into a
> > module (it's a translation table, int to char*). I want to
> >
> > use it once and then throw it away
>
> vi://TheSource/include/linux/init.h/__initdata

He was talking about modules, and modules don't support .init discarding.
modutils do support it, yet the kernel does not. I wrote a patch for this a
few years ago, but after numerous failed attempts to get it into 2.3 I gave
up. With hotplug it is less useful, but eventhough there are many modules
for which it could be a win.
You can search l-k for the patch, or might look it up if you're interested.

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.46 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:21 EST