From: Robert Hancock <hancockr@shaw.ca>
To: "remi.chateauneu@gmail.com" <remi.chateauneu@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: asm/atomic.h and user code
Date: Sat, 03 Mar 2007 20:09:47 -0600 [thread overview]
Message-ID: <45EA2A6B.9090404@shaw.ca> (raw)
In-Reply-To: <1172958807.453840.180700@30g2000cwc.googlegroups.com>
remi.chateauneu@gmail.com wrote:
> Is it me or it seems it is not possible anymore to use asm/atomic.h in
> non-kernel code ? Thanks.
The atomic functions, as with any internal kernel data structures, were
never intended to be used in userspace. In particular, the atomic
functions depend on config settings like CONFIG_SMP in order to actually
be atomic, and that's not guaranteed in userspace.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2007-03-04 2:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1172958807.453840.180700@30g2000cwc.googlegroups.com>
2007-03-04 2:09 ` Robert Hancock [this message]
2007-03-04 3:03 ` asm/atomic.h and user code Ralf Baechle
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=45EA2A6B.9090404@shaw.ca \
--to=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=remi.chateauneu@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.