atomic operations under linux
Gilboa Davara
gilboad at gmail.com
Wed Dec 9 18:45:35 IST 2009
On Wed, 2009-12-09 at 18:22 +0200, Erez D wrote:
> hi
>
> hi do i do atomic operations in linux (userspace) ?
>
> i need somthing like testAndSet32()
>
>
> thanks,
> erez.
You could access the kernel's atomic in-line function from user-space.
(under /usr/src/linux/arch...)
You'll have to include half kernel to satisfy missing symbols - but it's
doable. (At least it worked, last time I tried.)
Oh, I remember alsa (-devel) having a copy of these headers in a
user-mode digest-able form. Not sure though.
- Gilboa
More information about the Linux-il
mailing list