Re: what does __foo means.

From: Josh Boyer
Date: Tue Dec 07 2004 - 08:09:41 EST


On Tue, 2004-12-07 at 06:54, Jan Engelhardt wrote:
> >Hi all,
> >
> > Can anyone tell me does double underscore before a function mean?
> > In which scenario a programmer must use it.
>
> From the POV of a compiler, _ is like [a-z]. The programmer may use it freely.

Yes, yes, but I don't think that was the question :).

In the kernel a function that begins with __ usually denotes an internal
function for that file or subsystem. Not always, but usually.

josh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/