Expand description
Interrupt-aware spinlock (IrqMutex).
Authors: MarioS271
Re-exportsยง
use core::cell::UnsafeCell;๐use core::ops::Deref;๐use core::ops::DerefMut;๐use core::sync::atomic::AtomicBool;๐use core::sync::atomic::Ordering;๐use x86_64::registers::rflags::RFlags;๐use crate::cpu::instructions;๐
Structsยง
- IrqMutex
- Spinlock for data shared between normal kernel code and interrupt handlers; disables interrupts while held to avoid self-deadlock.
- IrqMutex
Guard - RAII guard for
IrqMutex; releases the lock and restores previous interrupts state on drop