lkml.org 
[lkml]   [2000]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: freeing a static after one use only?
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.092 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site