lkml.org 
[lkml]   [1999]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject__init & __exit
Hi,
I walked through 2.3.13 patch and I have some
small questions:
(1) __init/__exit is defined as empty string
for modules. Should be init_module/cleanup_module
marked as __init/__exit or not? Maybe question
for future modutils maintainer...
(2) There are some large structures in kernel
which are marked as __init/__initdata because
of they are used only at device initialization.
Because of some of them are `helper' functions
used by modules too, could not we introduce
concept of swappable kernel memory? Device
initialization occurs in specific contexts
(boottime or inside module initialization (or
cleanup, eventually)) where we could allow
swapping. Of course, probably not for 2.4, but
just idea... For example PCI bus scan, logo
drawing code (currently unavailable for modules),
videomode databasesare such things. And
for hotpluggable devices we then cannot
release __init section in most cases (as
device initialization lives in this section
in most cases).
Thanks,
Petr Vandrovec
vandrove@vc.cvut.cz

-
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:53    [W:0.037 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site