Home
last modified time | relevance | path

Searched refs:READER_BIAS (Results 1 – 3 of 3) sorted by relevance

/linux/include/linux/
A Drwbase_rt.h8 #define READER_BIAS (1U << 31) macro
18 .readers = ATOMIC_INIT(READER_BIAS), \
25 atomic_set(&(rwbase)->readers, READER_BIAS); \
31 return atomic_read(&rwb->readers) != READER_BIAS; in rw_base_is_locked()
/linux/kernel/locking/
A Drwbase_rt.c191 (void)atomic_add_return_release(READER_BIAS - bias, &rwb->readers); in __rwbase_write_unlock()
243 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_lock()
282 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_trylock()
A Drwsem.c1459 return count < 0 && count != READER_BIAS; in is_rwsem_reader_owned()

Completed in 6 milliseconds