看板 DFBSD_kernel 關於我們 聯絡資訊
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