Re: Question on atomic_inc/dec

From: Tim Hockin
Date: Tue Oct 14 2003 - 17:22:32 EST


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?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/