DragonFly kernel List (threaded) for 2005-03
[
Date Prev][
Date Next]
[
Thread Prev][Thread Next]
[
Date Index][
Thread Index]
Re: static functions
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
[
Date Prev][
Date Next]
[
Thread Prev][Thread Next]
[
Date Index][
Thread Index]