MOS Source Code
Loading...
Searching...
No Matches
pagefault_t Struct Reference

#include <mm.h>

+ Collaboration diagram for pagefault_t:

Public Attributes

bool is_present
 
bool is_write
 
bool is_user
 
bool is_exec
 
ptr_t ip
 the instruction pointer which caused the fault
 
platform_regs_tregs
 the registers of the moment that caused the fault
 
phyframe_tfaulting_page
 the frame that contains the copy-on-write data (if any)
 
const phyframe_tbacking_page
 the frame that contains the data for this page, the on_fault handler should set this
 

Detailed Description

Definition at line 35 of file mm.h.

Member Data Documentation

◆ is_present

◆ is_write

◆ is_user

bool is_user

Definition at line 37 of file mm.h.

Referenced by invalid_page_fault(), and mm_handle_fault().

◆ is_exec

bool is_exec

Definition at line 37 of file mm.h.

Referenced by invalid_page_fault(), and mm_handle_fault().

◆ ip

ptr_t ip

the instruction pointer which caused the fault

Definition at line 38 of file mm.h.

Referenced by invalid_page_fault(), and mm_handle_fault().

◆ regs

the registers of the moment that caused the fault

Definition at line 39 of file mm.h.

Referenced by invalid_page_fault().

◆ faulting_page

phyframe_t* faulting_page

the frame that contains the copy-on-write data (if any)

Definition at line 40 of file mm.h.

Referenced by mm_handle_fault(), mm_resolve_cow_fault(), and vfs_fault_handler().

◆ backing_page

const phyframe_t* backing_page

the frame that contains the data for this page, the on_fault handler should set this

Definition at line 41 of file mm.h.

Referenced by cow_zod_fault_handler(), mm_handle_fault(), and vfs_fault_handler().


The documentation for this struct was generated from the following file: