Module trap

Source
Expand description

Handles trap.

Structs§

TrapFrame
Trap frame of kernel interrupt

Functions§

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.