Garrett D'Amore wrote: > Somnath kotur wrote: >> Hi All, >> I am unable to find the equivalent of the atomic_read() call >> in linux, most nic driver implementations that i am seeing in >> opensolaris seem to declare a uint32_t and then do atomic_add_32 and >> atomic_sub() seems to be implemented as atomic_add_32( b ,-a) , while >> the add/sub operations might work fine , im not sure if my >> atomic_read() which im just reading as is #define atomic_read(a) (*(a) >> ) would suffice?
AFAIK, Linux does not support atomic_ops in the same manor as Solaris, however GCC 4.1+ supports the __sync built-in for Linux hosts. HTH, Steve _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
