public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Hockin <thockin@hockin.org>
To: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
Cc: sankar <san_madhav@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Question on atomic_inc/dec
Date: Tue, 14 Oct 2003 14:44:37 -0700	[thread overview]
Message-ID: <20031014214437.GA30302@hockin.org> (raw)
In-Reply-To: <A20D5638D741DD4DBAAB80A95012C0AED78649@orsmsx409.jf.intel.com>

On Tue, Oct 14, 2003 at 02:17:49PM -0700, Perez-Gonzalez, Inaky wrote:
> It will be in include/asm/atomic.h; however, it is not wise to
> use directly the kernel stuff unless you are coding kernel stuff.

Is there any reason NOT to use the atomic ops in user-space?  I mean, are
they privileged on some architectures, or ...?  It seems like some
user-space apps might really benefit from simple atomic ops.  Or at least,
kernel-coders writing in userspace could sure use simple atomic ops :)

Tim

-- 
Notice that as computers are becoming easier and easier to use,
suddenly there's a big market for "Dummies" books.  Cause and effect,
or merely an ironic juxtaposition of unrelated facts?


  parent reply	other threads:[~2003-10-14 21:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 21:17 Question on atomic_inc/dec Perez-Gonzalez, Inaky
2003-10-14 21:34 ` sankar
2003-10-14 21:44 ` Tim Hockin [this message]
2003-10-14 22:35   ` David S. Miller
2003-10-15  7:57   ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2003-10-15 17:38 Perez-Gonzalez, Inaky
2003-10-14 22:29 Perez-Gonzalez, Inaky
2003-10-15 17:28 ` sankar
2003-10-14 18:38 sankar

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=20031014214437.GA30302@hockin.org \
    --to=thockin@hockin.org \
    --cc=inaky.perez-gonzalez@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=san_madhav@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox