pub fn handle_page_fault(info: PageFaultInfo) -> Result<(), KernelError>Expand description
Main page fault handler.
Dispatches the fault to the appropriate sub-handler:
- Demand paging – the address is within a valid VAS mapping but the physical page has not been allocated yet.
- Copy-on-Write – the page is marked read-only for CoW; allocate a private copy and remap as writable.
- Stack growth – the faulting address is just below the current stack mapping; extend the stack downward.
- If none of the above apply, deliver SIGSEGV / return an error.