Messages in this thread |  | | From | Keith Owens <> | Subject | Re: initdata for modules? | Date | Mon, 27 Nov 2000 09:54:57 +1100 |
| |
On Sun, 26 Nov 2000 07:30:44 -0800, "Adam J. Richter" <adam@yggdrasil.com> wrote: > In reading include/linux/init.h, I was surprised to discover >that __init{,data} expands to nothing when compiling a module. >I was wondering if anyone is contemplating adding support for >__init{,data} in module loading, to reduce the memory footprints >of modules after they have been loaded.
It has been discussed a few times but nothing was ever done about it. AFAIK the savings were not seen to be that important because modules occupy complete pages. __init would have to be stored in a separate page which was then discarded. It would complicate insmod, rmmod, ksymoops and gdb. gdb against the kernel already gets confused by vmlinux data that is discarded and gdb has problems with modules at the best of times. Definitely 2.5 material, if at all.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |