Module trap

Source
Expand description

Handles trap.

Structs§

GeneralRegs
General registers.
TrapFrame
Trap frame of kernel interrupt
UserContext
User space context.

Functions§

init
Initialize interrupt handling on x86_64.
inject_user_page_fault_handler
Injects a custom handler for page faults that occur in the kernel and are caused by user-space address.
is_kernel_interrupted
Returns true if this function is called within the context of an IRQ handler and the IRQ occurs while the CPU is executing in the kernel mode. Otherwise, it returns false.