Home
last modified time | relevance | path

Searched refs:atomic_read (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.2/kernel/src/libs/
Drefcount.rs3 use super::{ffi_convert::{FFIBind2Rust, __convert_mut, __convert_ref}, atomic::atomic_read};
43 if atomic_read(&r.refs) == 0{ in refcount_inc()
Datomic.rs8 pub fn atomic_read(ato: *const atomic_t) -> i64 { in atomic_read() function
Dsemaphore.c8 if (atomic_read(&sema->counter) > 0) // 信号量大于0,资源充足 in semaphore_down()
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-mutex.c39 assert(atomic_read(&mtx.count) == 0); in ktest_mutex_case1_pid1()
62 assert(atomic_read(&mtx.count) == 0); in ktest_mutex_case1()
/DragonOS-0.1.2/kernel/src/common/
Dmutex.h69 #define mutex_is_locked(lock) ((atomic_read(&(lock)->count) == 1) ? 0 : 1)
Datomic.h13 #define atomic_read(atomic) ((atomic)->value) // 读取原子变量 macro
/DragonOS-0.1.2/kernel/src/mm/
Dvma.c262 if (unlikely(atomic_read(&vma->anon_vma->ref_count) == 0)) // 应当释放该anon_vma in __anon_vma_del()