Look at include/asm-i386/atomic.h. All architectures provide similar calls in kernel space AFAIK. Refer to the kernel hacking guide for some more info on these. - Vamsi On Tue, May 28, 2002 at 04:23:18PM +0530, Sharath Ballal wrote: > Hi, > > I had this question. Are there any subroutines provided in linux which > allow multiprocessor safe atomic operations on integers. Say if i have to > increment or decrement a variable atomically or read the value of a > variable atomically. Also, i am looking at calls which are not pthread > calls. > > Cheers, > Sharath. > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ -- Vamsi Krishna S. Linux Technology Center, IBM Software Lab, Bangalore. Ph: +91 80 5044959 Internet: vamsi@in.ibm.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/