<div dir="ltr">Do not use inline kernel atomic_t operation, you will violate GPL.<br>Use gcc builtins. If you want information please refer to:<br><a href="http://sos-linux.svn.sourceforge.net/viewvc/sos-linux/offsched/Linux-Debug/">http://sos-linux.svn.sourceforge.net/viewvc/sos-linux/offsched/Linux-Debug/</a><br>
and download linux-debug.pdf . You will few words on atomicity in user space in linux.<br>Please execuse for bad editing, the paper is not complete.<br><br>raz<br><br><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 6:45 PM, Gilboa Davara <span dir="ltr"><<a href="mailto:gilboad@gmail.com">gilboad@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Wed, 2009-12-09 at 18:22 +0200, Erez D wrote:<br>
> hi<br>
><br>
> hi do i do atomic operations in linux (userspace) ?<br>
><br>
> i need somthing like testAndSet32()<br>
><br>
><br>
> thanks,<br>
> erez.<br>
<br>
</div></div>You could access the kernel's atomic in-line function from user-space.<br>
(under /usr/src/linux/arch...)<br>
<br>
You'll have to include half kernel to satisfy missing symbols - but it's<br>
doable. (At least it worked, last time I tried.)<br>
<br>
Oh, I remember alsa (-devel) having a copy of these headers in a<br>
user-mode digest-able form. Not sure though.<br>
<font color="#888888"><br>
- Gilboa<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</div></div></blockquote></div><br></div>