pub struct IDT { /* private fields */ }Methods from Deref<Target = InterruptDescriptorTable>§
pub fn load(&'static self)
pub fn load(&'static self)
Loads the IDT in the CPU using the lidt command.
pub unsafe fn load_unsafe(&self)
pub unsafe fn load_unsafe(&self)
Loads the IDT in the CPU using the lidt command.
§Safety
As long as it is the active IDT, you must ensure that:
selfis never destroyed.selfalways stays at the same memory location. It is recommended to wrap it in aBox.
pub fn slice(
&self,
bounds: impl RangeBounds<u8>,
) -> &[Entry<extern "x86-interrupt" fn(InterruptStackFrame)>]
pub fn slice( &self, bounds: impl RangeBounds<u8>, ) -> &[Entry<extern "x86-interrupt" fn(InterruptStackFrame)>]
Returns slice of IDT entries with the specified range.
Panics if the entry is an exception.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IDT
impl RefUnwindSafe for IDT
impl Send for IDT
impl Sync for IDT
impl Unpin for IDT
impl UnwindSafe for IDT
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