Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
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-6.1.9/kernel/locking/
Drwbase_rt.c195 (void)atomic_add_return_release(READER_BIAS - bias, &rwb->readers); in __rwbase_write_unlock()
247 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_lock()
289 atomic_sub(READER_BIAS, &rwb->readers); in rwbase_write_trylock()
Drwsem.c1498 return count < 0 && count != READER_BIAS; in is_rwsem_reader_owned()