Searched refs:atomic_read (Results 1 – 7 of 7) sorted by relevance
3 use super::{ffi_convert::{FFIBind2Rust, __convert_mut, __convert_ref}, atomic::atomic_read};43 if atomic_read(&r.refs) == 0{ in refcount_inc()
8 pub fn atomic_read(ato: *const atomic_t) -> i64 { in atomic_read() function
8 if (atomic_read(&sema->counter) > 0) // 信号量大于0,资源充足 in semaphore_down()
39 assert(atomic_read(&mtx.count) == 0); in ktest_mutex_case1_pid1()62 assert(atomic_read(&mtx.count) == 0); in ktest_mutex_case1()
69 #define mutex_is_locked(lock) ((atomic_read(&(lock)->count) == 1) ? 0 : 1)
13 #define atomic_read(atomic) ((atomic)->value) // 读取原子变量 macro
262 if (unlikely(atomic_read(&vma->anon_vma->ref_count) == 0)) // 应当释放该anon_vma in __anon_vma_del()