Re: Need help with kernel modules ...

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Mar 08 2000 - 01:01:34 EST


On Tue, 7 Mar 2000 17:42:29 +0100,
"Thomas M. Galla" <tom@vmars.tuwien.ac.at> wrote:
>Or is it in general
>impossible to prevent that variables/functions that are exported
>(i.e., not declared as static) by (a source module of) a kernel module
>are visible to the rest of the kernel?

It is impossible, there are only two options for module symbols.
Either they are local to a module (only the module can see them) or
they are exported (every other module can see them). BTW, you can
export static symbols, the EXPORT_SYMBOL mechanism is almost
independent of the compiler's idea of static vs. global.

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



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:13 EST