pub fn with_irqs_disabled<R>(f: impl FnOnce(&IrqDisabledToken) -> R) -> RExpand description
Execute a closure with IRQs disabled, providing an IrqDisabledToken as proof.
Saves and disables IRQs before calling f, then restores the previous flag state.