From: "Devesh Sharma" <devesh28@gmail.com>
To: arjan@infradead.org, linux-kernel@vger.kernel.org
Subject: Question about Atomic operations
Date: Thu, 31 Aug 2006 09:59:47 +0530 [thread overview]
Message-ID: <309a667c0608302129o55cdc88bt9e57683a9e5fa253@mail.gmail.com> (raw)
Hello Arjan and list,
The documentation related to atomic operations says that the following
functions should be called in SMP safe maner
void atomic_add(int i, atomic_t *v);
void atomic_sub(int i, atomic_t *v);
void atomic_inc(atomic_t *v);
void atomic_dec(atomic_t *v);
since the implementation of these functions are prefixed with LOCK
prefix (On i386 arch.) which either asserts LOCK# signal or performs
cache locking which gauarentees coherency.
Then why these functions should be called in SMP safe manner?
reply other threads:[~2006-08-31 4:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=309a667c0608302129o55cdc88bt9e57683a9e5fa253@mail.gmail.com \
--to=devesh28@gmail.com \
--cc=arjan@infradead.org \
--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®