lkml.org 
[lkml]   [1999]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: RFC: /proc/module namespace
DateThu, 02 Sep 1999 19:45:13 +0100
FromPhilip Blundell <>
>These days, modern kernel modules function exactly the same, whether
>they are static or dynamic modules. That's why module_init() and
>module_exit() exist: to enable a single codebase to support modules,
>without #ifdef MODULE all over the code.

I'd quite like to see an __exit qualifier along the same lines as __init that
would cause functions so tagged to be thrown away in non-module builds. At
the moment you have to either accept memory wastage or surround your cleanup
code with #ifdef MODULE, as far as I can tell, which isn't especially pretty.

p.



-
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    [from the cache]
©2003-2010