pub struct PreemptDisableGuard<K: Kernel>(K);Tuple Fields§
§0: KImplementations§
Source§impl<K: Kernel> PreemptDisableGuard<K>
impl<K: Kernel> PreemptDisableGuard<K>
pub fn new(kernel: K) -> Self
Sourcepub(crate) unsafe fn adopt_locked(kernel: K) -> Self
pub(crate) unsafe fn adopt_locked(kernel: K) -> Self
Reconstructs a PreemptDisableGuard when preemption is already disabled.
§Safety
preempt_disable_count must already be >= 1 for an active guard whose
ownership was transferred to this context.