mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Boyer <jdub@us.ibm.com>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: krishna <krishna.c@globaledgesoft.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: what does __foo means.
Date: Tue, 07 Dec 2004 07:08:39 -0600	[thread overview]
Message-ID: <1102424919.4118.2.camel@weaponx.rchland.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.53.0412071354060.16729@yvahk01.tjqt.qr>

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


  reply	other threads:[~2004-12-07 13:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07 12:45 krishna
2004-12-07 12:54 ` Jan Engelhardt
2004-12-07 13:08   ` Josh Boyer [this message]
2004-12-07 13:11   ` bert hubert
2004-12-07 15:29     ` Jörn Engel
     [not found] <fa.gd7ov5r.1n64a8t@ifi.uio.no>
2004-12-07 15:52 ` Bodo Eggert
2004-12-07 22:52   ` Kyle Moffett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1102424919.4118.2.camel@weaponx.rchland.ibm.com \
    --to=jdub@us.ibm.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=krishna.c@globaledgesoft.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®