How to get rid of unused data in LKM

John Tyner jtyner at
Thu Jul 25 02:21:40 EST 2002

> > But after doing so, the firmware data is still wasting kernel memory on the host system
> > and is not used anymore.
> > How can I free that memory ? Is there a better way to handle that data ?
> If you really think you must link the data with the  module:  Declare
> it using "__initdata" ?

I was under the impression that data like this is not thrown away when
compiled as a module... only when compiled directly into the kernel. Is
this not true?

I think Wolfgang's ioctl idea is a much better way to go in this case.

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list