Re: RFC: /proc/module namespace

Philip Blundell (Philip.Blundell@pobox.com)
Thu, 02 Sep 1999 19:45:13 +0100


>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/