On 30/04/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>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"?
All I know is that a lot of driver vendors favour them. I know ATi used them for a long time with their driver... -- "Less is only more where more is no good." --Frank Lloyd Wright Shawn Walker, Software and Systems Analyst [EMAIL PROTECTED] - http://binarycrusader.blogspot.com/ _______________________________________________ opensolaris-discuss mailing list [email protected]
