Struct x86_64::irq::IdtEntryOptions
[−]
[src]
pub struct IdtEntryOptions(_);
Describes options of an IDT entry.
Methods
impl IdtEntryOptions
[src]
fn set_present(&mut self, present: bool) -> &mut Self
Update the present
bit.
fn disable_interrupts(&mut self, disable: bool) -> &mut Self
Control if interrupts should be disabled when the handler function is called.
fn set_privilege_level(&mut self, dpl: u8) -> &mut Self
Set the minimal privilege level required to invoke this interrupt.
fn set_stack_index(&mut self, index: Option<u8>) -> &mut Self
Set the IST index. If None
is passed, the stack switching mechanism is disabled. If
Some(i)
is passed, the CPU will switch to the i-th stack in the IST of the loaded TSS
(index starts at 0).
Trait Implementations
impl Debug for IdtEntryOptions
[src]
impl Clone for IdtEntryOptions
[src]
fn clone(&self) -> IdtEntryOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more