Re: asm/atomic.h and user code

From: Robert Hancock
Date: Sat Mar 03 2007 - 21:11:54 EST


remi.chateauneu@xxxxxxxxx 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@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/

-
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/