Struct kernel::cpu::idt::InterruptDescriptorTableEntry
source · #[repr(C, align(16))]pub(super) struct InterruptDescriptorTableEntry<T> {
offset_low: u16,
selector: u16,
ist: u8,
flags: u8,
offset_middle: u16,
offset_high: u32,
zero: u32,
phantom: PhantomData<T>,
}
Fields§
§offset_low: u16
§selector: u16
§ist: u8
§flags: u8
§offset_middle: u16
§offset_high: u32
§zero: u32
§phantom: PhantomData<T>
Implementations§
source§impl<T> InterruptDescriptorTableEntry<T>
impl<T> InterruptDescriptorTableEntry<T>
pub const fn empty() -> Self
fn set_handler_ptr(&mut self, handler_addr: u64) -> &mut Self
pub fn set_stack_index(&mut self, stack_index: Option<u8>) -> &mut Self
pub fn set_disable_interrupts(&mut self, disable_interrupts: bool) -> &mut Self
pub fn override_code_segment(&mut self, cs: u16) -> &mut Self
pub fn set_privilege_level(&mut self, ring: u8) -> &mut Self
source§impl InterruptDescriptorTableEntry<extern "x86-interrupt" fn(frame: InterruptStackFrame64)>
impl InterruptDescriptorTableEntry<extern "x86-interrupt" fn(frame: InterruptStackFrame64)>
pub fn set_handler( &mut self, handler: extern "x86-interrupt" fn(frame: InterruptStackFrame64) ) -> &mut Self
source§impl InterruptDescriptorTableEntry<extern "x86-interrupt" fn(frame: InterruptStackFrame64, error_code: u64)>
impl InterruptDescriptorTableEntry<extern "x86-interrupt" fn(frame: InterruptStackFrame64, error_code: u64)>
pub fn set_handler( &mut self, handler: extern "x86-interrupt" fn(frame: InterruptStackFrame64, error_code: u64) ) -> &mut Self
source§impl<T> InterruptDescriptorTableEntry<T>
impl<T> InterruptDescriptorTableEntry<T>
pub fn set_handler_with_number( &mut self, handler: extern "cdecl" fn(state: &mut InterruptAllSavedState), vector_n: u8 ) -> &mut Self
Trait Implementations§
source§impl<T: Clone> Clone for InterruptDescriptorTableEntry<T>
impl<T: Clone> Clone for InterruptDescriptorTableEntry<T>
source§fn clone(&self) -> InterruptDescriptorTableEntry<T>
fn clone(&self) -> InterruptDescriptorTableEntry<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Default> Default for InterruptDescriptorTableEntry<T>
impl<T: Default> Default for InterruptDescriptorTableEntry<T>
source§fn default() -> InterruptDescriptorTableEntry<T>
fn default() -> InterruptDescriptorTableEntry<T>
Returns the “default value” for a type. Read more
impl<T: Copy> Copy for InterruptDescriptorTableEntry<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for InterruptDescriptorTableEntry<T>where
T: RefUnwindSafe,
impl<T> Send for InterruptDescriptorTableEntry<T>where
T: Send,
impl<T> Sync for InterruptDescriptorTableEntry<T>where
T: Sync,
impl<T> Unpin for InterruptDescriptorTableEntry<T>where
T: Unpin,
impl<T> UnwindSafe for InterruptDescriptorTableEntry<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.