Why does BSD Unix kernel functions have uppercase Static qualifiers?

B

Bilgehan.Balban

Hi,

As asked in the title, I see

Static func();

style code both in NetBSD and FreeBSD kernels. How come the static
keyword is uppercase? Is it a macro?

Thanks,
Bahadir
 
K

Keith Thompson

As asked in the title, I see

Static func();

style code both in NetBSD and FreeBSD kernels. How come the static
keyword is uppercase? Is it a macro?

It's probably a macro. If you have the kernel sources, you can
probably find the file (presumably a header) where it's defined.
 
T

tedu

Keith said:
It's probably a macro. If you have the kernel sources, you can
probably find the file (presumably a header) where it's defined.

yes, because the kernel debugger is more useful when everything shows
up in the symbol table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top