15 for (
size_t i = pml2_index(*vaddr); i <
PML2_ENTRIES && *n_pages; i++)
30 *n_pages -=
MIN(*n_pages, PML2E_NPAGES);
void pml1_traverse(pml1_t pml1, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data)
void pml2_traverse(pml2_t pml2, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t options, void *data)
void(* pml2e_pre_traverse)(pml2_t pml2, pml2e_t *e, ptr_t vaddr, void *data)