[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what does a number of "_" mean?
In short, a function with "__" is a kind of raw function, isnt it?
Thank you for your description. With this, I'd come to learn the kernel
more easily.
Thanks,
Shinpei Kato.
On Mon, 03 Nov 2003 11:53:22 -0500
Robert Love <rml@tech9.net> wrote:
> > On Mon, 2003-11-03 at 08:17, Shinpei Kato wrote:
>
> > How about types or variables and functions beggining with one "_"
> > as _exit()?
>
> Underscores tend to denote internal functions, or ones with a
> corresponding functions that are of a "higher level".
>
> There is not any official difference between one and two underscore
> proceeded functions, but I guess two underscore functions would tend to
> be "more internal" than one underscore functions.
>
> For example, consider foo() and __foo(). foo() might obtain requisite
> locks and then call __foo(). The standard interface would be foo(), but
> you could call __foo() if you knew you already held the locks or
> whatever.
>
> In the case of the _exit_*() functions, those are internal helper
> functions called by do_exit().
>
> Robert Love
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/