Struct x86_64::structures::idt::IdtEntry [−][src]
#[repr(C)]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]
impl IdtEntry<HandlerFunc>
pub fn set_handler_fn(&mut self, handler: HandlerFunc) -> &mut EntryOptions
[src]
pub 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]
impl IdtEntry<HandlerFuncWithErrCode>
pub fn set_handler_fn(
&mut self,
handler: HandlerFuncWithErrCode
) -> &mut EntryOptions
[src]
pub fn set_handler_fn(
&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]
impl IdtEntry<PageFaultHandlerFunc>
pub fn set_handler_fn(
&mut self,
handler: PageFaultHandlerFunc
) -> &mut EntryOptions
[src]
pub 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: Clone> Clone for IdtEntry<F>
[src]
impl<F: Clone> Clone for IdtEntry<F>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<F: Copy> Copy for IdtEntry<F>
[src]
impl<F: Copy> Copy for IdtEntry<F>