Jor-el wrote:

>     From the book 'Linux Device Drivers' by Alessandro Rubini :
> 
>     "... The best approach to prevent namespace pollution is to declare
> all your symbols as static and to use a well-defined prefix for the
> symbols you leave as global."
> 
>      By namespace pollution, the author is referring to the problem
> which occurs when device driver writers may create functions / global
> variables that maybe used elsewhere in the kernel.
> 
>      My question is this : how does using 'static' variables solve this
> problem? I was not aware that static variables / function pointers had
> such a property.

Functions or global variables which are declared `static' are only
visible within the file in which they are declared.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to