Struct SleepLock
kernel::sleeplock
pub struct SleepLock { spin: Mutex<SleepLockInfo>, name: &'static str, }
spin: Mutex<SleepLockInfo>
name: &'static str
impl SleepLock
pub const fn new(name: &'static str) -> Self
pub fn acquire(&mut self) -> SleepLockGuard
pub fn holding(&self) -> bool