Home
last modified time | relevance | path

Searched refs:LockRef (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dlockref.rs10 pub struct LockRef { struct
17 pub struct LockRef { argument
32 impl LockRef { implementation
33 pub const INIT: LockRef = LockRef {
38 pub fn new() -> LockRef { in new()
39 assert_eq!(size_of::<LockRef>(), 8); in new()
40 return LockRef::INIT; in new()
55 let mut old: LockRef = LockRef::INIT; in cmpxchg_loop()
59 let mut new = LockRef::INIT; in cmpxchg_loop()
61 *(&mut new as *mut LockRef as *mut usize as *mut u64) = in cmpxchg_loop()
[all …]
/DragonOS-0.1.8/docs/kernel/locking/
Dlockref.md17 pub struct LockRef {
24 pub struct LockRef {