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 Thu, Feb 17, 2000 at 11:54:46PM +0100, Peter T. Breuer wrote:
> I have another request for help ... I humbly beseech such advice
> as may be bestown.
>
> 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
>
> after it has been used for the purpose it was defined for: translating
> kernel data into another format. The latter will be supplied by the
> module to readers on demand.

I'm not really up on drivers, so if this is stupid forgive me.

Would it be possible to define the static data in its own loadable
module, that your driver could insmod and then rmmod?


tim

-
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.606 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site