Searched refs:rw_cas (Results 1 – 1 of 1) sorted by relevance
| /openbsd/src/sys/kern/ |
| D | kern_rwlock.c | 45 #define rw_cas(p, e, n) atomic_cas_ulong(p, e, n) macro 50 rw_cas(volatile unsigned long *p, unsigned long e, unsigned long n) in rw_cas() function 121 nowner = rw_cas(&rwl->rwl_owner, owner, decr); in rw_do_exit_read() 154 owner = rw_cas(&rwl->rwl_owner, self, 0); in rw_exit_write() 236 owner = rw_cas(&rwl->rwl_owner, 0, self); in rw_do_enter_write() 268 owner = rw_cas(&rwl->rwl_owner, 0, self); in rw_do_enter_write() 311 owner = rw_cas(&rwl->rwl_owner, 0, self); in rw_do_enter_write() 330 nowner = rw_cas(&rwl->rwl_owner, owner, incr); in rw_read_incr() 355 owner = rw_cas(&rwl->rwl_owner, 0, RWLOCK_READ_INCR); in rw_do_enter_read()
|