Re: static functions

看板DFBSD_kernel作者時間21年前 (2005/04/01 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/5 (看更多)
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
文章代碼(AID): #12J3iH00 (DFBSD_kernel)
文章代碼(AID): #12J3iH00 (DFBSD_kernel)