[−]Struct sunrise_kernel::i386::structures::idt::EntryOptions
Represents the options field of an IDT entry.
Implementations
impl EntryOptions
fn gate_type(&self) -> GateType
Type of the interrupt handler. Its value determines the mechanism used to trigger the handler.
fn privilege_level(&self) -> PrivilegeLevel
fn is_present(&self) -> bool
fn set_is_present(&mut self, value: bool)
impl EntryOptions
[src]
fn minimal() -> Self
[src]
Creates a minimal options field with all the must-be-one bits set.
fn set_gate_type(&mut self, gate_type: GateType) -> &mut Self
[src]
Set the kind of gate this IdtEntry represents.
pub fn set_privilege_level(&mut self, privlvl: PrivilegeLevel) -> &mut Self
[src]
Set the required privilege level (DPL) for invoking the handler. If CPL < DPL, a general protection fault occurs.
pub fn set_present_interrupt(&mut self, present: bool) -> &mut Self
[src]
Set or reset the preset bit.
pub fn set_present_task(&mut self, present: bool) -> &mut Self
[src]
Set or reset the preset bit.
pub fn disable_interrupts(&mut self, disable: bool) -> &mut Self
[src]
Let the CPU disable hardware interrupts when the handler is invoked. By default, interrupts are disabled on handler invocation.
Trait Implementations
impl<T> BitRange<T> for EntryOptions where
u8: BitRange<T>,
u8: BitRange<T>,
fn bit_range(&self, msb: usize, lsb: usize) -> T
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
impl Clone for EntryOptions
[src]
fn clone(&self) -> EntryOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EntryOptions
[src]
impl Debug for EntryOptions
Auto Trait Implementations
impl RefUnwindSafe for EntryOptions
impl Send for EntryOptions
impl Sync for EntryOptions
impl Unpin for EntryOptions
impl UnwindSafe for EntryOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Bit for T where
T: BitRange<u8>,
T: BitRange<u8>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,