Struct x86_64::structures::idt::IdtEntry
[−]
[src]
#[repr(C, packed)]pub struct IdtEntry<F> { /* fields omitted */ }
An Interrupt Descriptor Table entry.
The generic parameter can either be HandlerFunc
or HandlerFuncWithErrCode
, depending
on the interrupt vector.
Methods
impl IdtEntry<HandlerFunc>
[src]
fn set_handler_fn(&mut self, handler: HandlerFunc) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
impl IdtEntry<HandlerFuncWithErrCode>
[src]
fn set_handler_fn(
&mut self,
handler: HandlerFuncWithErrCode
) -> &mut EntryOptions
&mut self,
handler: HandlerFuncWithErrCode
) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
impl IdtEntry<PageFaultHandlerFunc>
[src]
fn set_handler_fn(&mut self, handler: PageFaultHandlerFunc) -> &mut EntryOptions
Set the handler function for the IDT entry and sets the present bit.
For the code selector field, this function uses the code segment selector currently active in the CPU.
The function returns a mutable reference to the entry's options that allows further customization.
Trait Implementations
impl<F: Debug> Debug for IdtEntry<F>
[src]
impl<F: Clone> Clone for IdtEntry<F>
[src]
fn clone(&self) -> IdtEntry<F>
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