Searched refs:SX_SHARERS_LOCK (Results 1 - 2 of 2) sorted by relevance

/freebsd-10-stable/sys/sys/
H A Dsx.h79 #define SX_SHARERS_LOCK(x) \ macro
83 #define SX_LOCK_UNLOCKED SX_SHARERS_LOCK(0)
201 if (x == (SX_SHARERS_LOCK(1) | SX_LOCK_EXCLUSIVE_WAITERS) ||
/freebsd-10-stable/sys/kern/
H A Dkern_sx.c451 success = atomic_cmpset_ptr(&sx->sx_lock, SX_SHARERS_LOCK(1) | x,
497 atomic_cmpset_rel_ptr(&sx->sx_lock, x, SX_SHARERS_LOCK(1) |
515 atomic_store_rel_ptr(&sx->sx_lock, SX_SHARERS_LOCK(1) |
1092 MPASS(x == SX_SHARERS_LOCK(1));
1094 SX_SHARERS_LOCK(1), SX_LOCK_UNLOCKED)) {
1107 MPASS(x == (SX_SHARERS_LOCK(1) | SX_LOCK_EXCLUSIVE_WAITERS));
1118 SX_SHARERS_LOCK(1) | SX_LOCK_EXCLUSIVE_WAITERS,

Completed in 67 milliseconds