static functions

Zera William Holladay zholla1 at uic.edu
Thu Mar 31 07:53:29 PST 2005


On Thu, 31 Mar 2005, Jonathon McKitrick wrote:

>
> Sorry this is such a lame question, but I never quite figured out what
> 'static' does to a function declaration.  Obviously for a variable, it
> allocates memory for the lifetime of the process rather than on the stack just
> for one function call.  But what about 'static' for all the kernel functions
> that have no return value?

I think it scopes the function to that file.  If I'm wrong, then at least
I'll never forget it :).  If I'm right, then there is probably a more
precise explanation.

-Zera





More information about the Kernel mailing list