Module idt

Source
Expand description

Provides types for the Interrupt Descriptor Table and its entries.

§For the builds without the abi_x86_interrupt feature

The following types are opaque and non-constructable instead of function pointers.

These types are defined for the compatibility with the Nightly Rust build.

Structs§

Entry
An Interrupt Descriptor Table entry.
EntryOptions
Represents the 4 non-offset bytes of an IDT entry.
InterruptDescriptorTable
An Interrupt Descriptor Table with 256 entries.
InterruptStackFrame
Wrapper type for the interrupt stack frame pushed by the CPU.
InterruptStackFrameValue
Represents the interrupt stack frame pushed by the CPU on interrupt or exception entry.
InvalidExceptionVectorNumber
Exception vector number is invalid
PageFaultErrorCode
Describes an page fault error code.
SelectorErrorCode
Describes an error code referencing a segment selector.

Enums§

DescriptorTable
The possible descriptor table values.
ExceptionVector
This structure defines the CPU-internal exception vector numbers.

Traits§

HandlerFuncType
A common trait for all handler functions usable in Entry.

Type Aliases§

DivergingHandlerFunc
A handler function that must not return, e.g. for a machine check exception.
DivergingHandlerFuncWithErrCode
A handler function with an error code that must not return, e.g. for a double fault exception.
GeneralHandlerFunc
A general handler function for an interrupt or an exception with the interrupt/exceptions’s index and an optional error code.
HandlerFunc
A handler function for an interrupt or an exception without error code.
HandlerFuncWithErrCode
A handler function for an exception that pushes an error code.
PageFaultHandlerFunc
A page fault handler function that pushes a page fault error code.