MyOS Kernel
pg_struct_entry Struct Reference

Data Fields

int pres:1
 Whether the page is present.
 
int wr:1
 Whether the page is writeable.
 
int usr:1
 Whether the page is accessible by user mode.
 
int cachetype:1
 Cache type for the page. Write-through caching when 1, write-back caching when 0.
 
int cachedisable:1
 Whether caching is disabled.
 
int accessed:1
 Whether the page has been accessed.
 
int dirty:1
 Whether the page is dirty (has been written to)
 
int sz:1
 Page size.
 
int osavail:4
 Availible for OS use.
 
int pgno:20
 Physical page number this page maps to.
 

Detailed Description

Represents an entry in a page table/directory.

Note
Privlege bits in the page directory and page table entries for a page are ANDed together, so the most restrictive privlege between the page directory and the page table wins.

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