kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: miloody@gmail.com (loody)
To: kernelnewbies@lists.kernelnewbies.org
Subject: where is __memory_barrier in kernel ?
Date: Sun, 6 Mar 2011 22:02:54 +0800	[thread overview]
Message-ID: <AANLkTimb2OLQFRaxox8dgf7eV6sDX48sm9eKbAvgrwCa@mail.gmail.com> (raw)

hi all:
I grep kernel source and found cpu_relax is defined as
__memory_barrier(), which seems not defined in kernel source.
At beginning I think it may be the gcc build-in functions, but I
cannot find in the gcc document.
Where and what is that used for?

-- 
Regards,
miloody

             reply	other threads:[~2011-03-06 14:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06 14:02 loody [this message]
2011-03-06 14:38 ` where is __memory_barrier in kernel ? Михаил Кринкин
2011-03-08  6:20   ` piyush moghe
2011-03-08  6:29 ` Mulyadi Santosa
2011-03-08  6:38   ` piyush moghe
2011-03-10 15:13     ` loody
2011-03-10 16:51       ` Mulyadi Santosa
2011-03-13  2:26       ` Jim Cromie

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=AANLkTimb2OLQFRaxox8dgf7eV6sDX48sm9eKbAvgrwCa@mail.gmail.com \
    --to=miloody@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).