Re: [driver-discuss] equivalent of atomic_read() in solaris

2009-07-19 Thread pavan chandrashekar
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) , w

Re: [driver-discuss] equivalent of atomic_read() in solaris

2009-07-19 Thread pavan chandrashekar
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) , w

Re: [driver-discuss] equivalent of atomic_read() in solaris

2009-07-19 Thread Steven Stallion
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 imple

Re: [driver-discuss] equivalent of atomic_read() in solaris

2009-07-19 Thread Garrett D'Amore
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) , w

[driver-discuss] equivalent of atomic_read() in solaris

2009-07-19 Thread Somnath kotur
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 opera