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

/freebsd-10-stable/sys/kern/
H A Dkern_rwlock.c137 ((rw)->rw_lock & RW_LOCK_READ ? NULL : \
188 if (rw->rw_lock & RW_LOCK_READ) {
205 return ((x & RW_LOCK_READ) != 0 ? (RW_READERS(x) != 0) :
369 ((curthread->td_rw_rlocks && (_rw) & RW_LOCK_READ) || ((_rw) & \
370 (RW_LOCK_READ | RW_LOCK_WRITE_WAITERS | RW_LOCK_WRITE_SPINNER)) == \
371 RW_LOCK_READ)
466 if ((v & RW_LOCK_READ) == 0) {
490 if ((v & RW_LOCK_READ) == 0 || RW_CAN_READ(v))
530 if ((v & RW_LOCK_READ) == 0) {
584 LOCKSTAT_READER, (state & RW_LOCK_READ)
[all...]
/freebsd-10-stable/sys/sys/
H A Drwlock.h57 #define RW_LOCK_READ 0x01 macro
62 (RW_LOCK_READ | RW_LOCK_READ_WAITERS | RW_LOCK_WRITE_WAITERS | \
69 #define RW_READERS_LOCK(x) ((x) << RW_READERS_SHIFT | RW_LOCK_READ)

Completed in 65 milliseconds