next up previous contents index
Next: 10.9.16 ptab_dump: dump the Up: (X86) Base Environment: Page Previous: 10.9.14 pdir_clean_range: free unused

10.9.15 pdir_dump: dump the contents of a page directory and all its page tables

   

SYNOPSIS

#include <oskit/x86/base_paging.h>

void pdir_dump(oskit_addr_t pdir_pa);

DESCRIPTION

This function is primarily intended for debugging purposes: it dumps the mappings described by the specified page directory and all associated page tables in a reasonably compact, human-readable form, using printf. 4MB superpage as well as 4KB page mappings are handled properly, and contiguous ranges of identical mappings referring to successive physical pages or superpages are collapsed into a single line for display purposes. The permissions and other page directory/page table entry flags are expanded out as human-readable flag names.

PARAMETERS

pdir_pa
Physical address of the page directory describing the linear address space to dump.

DEPENDENCIES

ptab_dump
10.9.16
printf
9.6
phystokv
10.6.2



University of Utah Flux Research Group