#[repr(transparent)]pub struct Tpl(pub usize);
Expand description
Task priority level.
Although the UEFI specification repeatedly states that only the variants specified below should be used in application-provided input, as the other are reserved for internal firmware use, it might still happen that the firmware accidentally discloses one of these internal TPLs to us.
Since feeding an unexpected variant to a Rust enum is UB, this means that this C enum must be interfaced via the newtype pattern.
Tuple Fields§
§0: usize
Implementations§
source§impl Tpl
impl Tpl
sourcepub const APPLICATION: Tpl = _
pub const APPLICATION: Tpl = _
Normal task execution level.
sourcepub const NOTIFY: Tpl = _
pub const NOTIFY: Tpl = _
Notifications are masked at this level.
This is used in critical sections of code.
sourcepub const HIGH_LEVEL: Tpl = _
pub const HIGH_LEVEL: Tpl = _
Highest priority level.
Even processor interrupts are disable at this level.