>Hi, > I was looking for Opensolaris APIs equivalent to atomic_read() and >atomic_set() found in Linux. The solaris' asm/atomic.h does not define >such APIs. When I looked in the on-nv source, similar macros are >defined in >http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/io/drm/drmP.h >but this file does not appear on my SXDE b55 installation. Am I >missing something here?
If those APIs do what their names suggests, what is the point in having them? "Atomic set" can hardly be anything other than a normal store nor can "Atomic read" be much different from an ordinary read. Perhaps what is meant is "read preceded by membar_consumer()" and "set followed by membar producer"? Casper _______________________________________________ opensolaris-discuss mailing list [email protected]
