Why does BSD Unix kernel functions have uppercase Static qualifiers?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bilgehan.Balban@gmail.com

    Why does BSD Unix kernel functions have uppercase Static qualifiers?

    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

  • Keith Thompson

    #2
    Re: Why does BSD Unix kernel functions have uppercase Staticqualifier s?

    Bilgehan.Balban @gmail.com writes:[color=blue]
    > 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?[/color]

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

    --
    Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
    San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
    We must do something. This is something. Therefore, we must do this.

    Comment

    • tedu

      #3
      Re: Why does BSD Unix kernel functions have uppercase Static qualifiers?

      Keith Thompson wrote:[color=blue]
      > Bilgehan.Balban @gmail.com writes:[color=green]
      > > 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?[/color]
      >
      > It's probably a macro. If you have the kernel sources, you can
      > probably find the file (presumably a header) where it's defined.
      >[/color]

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

      Comment

      Working...