atomic operations under linux

atomic operations under linux

Raz raziebe at gmail.com
Wed Dec 9 20:04:48 IST 2009


Do not use inline kernel atomic_t operation, you will violate GPL.
Use gcc builtins. If you want information please refer to:
http://sos-linux.svn.sourceforge.net/viewvc/sos-linux/offsched/Linux-Debug/
and download linux-debug.pdf . You will few words on atomicity in user space
in linux.
Please execuse for bad editing, the paper is not complete.

raz


On Wed, Dec 9, 2009 at 6:45 PM, Gilboa Davara <gilboad at gmail.com> wrote:

> 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
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091209/f5ab1d5d/attachment.html>


More information about the Linux-il mailing list