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

Creates a non-present IDT entry (but sets the must-be-one bits).

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.

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.