Struct x86_64::structures::idt::Entry [−][src]
#[repr(C)]pub struct Entry<F> { /* fields omitted */ }
Expand description
An Interrupt Descriptor Table entry.
The generic parameter can either be HandlerFunc
or HandlerFuncWithErrCode
, depending
on the interrupt vector.
Implementations
Set the handler address 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.
Safety
The caller must ensure that addr
is the address of a valid interrupt handler function,
and the signature of such a function is correct for the entry type.
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.
This method is only usable with the abi_x86_interrupt
feature enabled. Without it, the
unsafe Entry::set_handler_addr
method has to be used instead.
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.
This method is only usable with the abi_x86_interrupt
feature enabled. Without it, the
unsafe Entry::set_handler_addr
method has to be used instead.
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.
This method is only usable with the abi_x86_interrupt
feature enabled. Without it, the
unsafe Entry::set_handler_addr
method has to be used instead.
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.
This method is only usable with the abi_x86_interrupt
feature enabled. Without it, the
unsafe Entry::set_handler_addr
method has to be used instead.
pub fn set_handler_fn(
&mut self,
handler: DivergingHandlerFuncWithErrCode
) -> &mut EntryOptions
pub fn set_handler_fn(
&mut self,
handler: DivergingHandlerFuncWithErrCode
) -> &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.
This method is only usable with the abi_x86_interrupt
feature enabled. Without it, the
unsafe Entry::set_handler_addr
method has to be used instead.