MOS Source Code
Loading...
Searching...
No Matches
iterator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
6
7typedef struct
8{
9 bool present;
10 ptr_t vaddr, vaddr_end;
11 pfn_t pfn, pfn_end;
14
25
34void pagetable_iter_init(pagetable_iter_t *it, pgd_t pgd, ptr_t vaddr, ptr_t end);
35
void pagetable_iter_init(pagetable_iter_t *it, pgd_t pgd, ptr_t vaddr, ptr_t end)
Initialize a pagetable iterator.
Definition iterator.c:82
pagetable_iter_range_t * pagetable_iter_next(pagetable_iter_t *it)
Get the next page table range.
Definition iterator.c:97
vm_flags
Definition platform.h:40
pagetable_iter_range_t range
Definition iterator.h:23
unsigned long long pfn_t
Definition types.h:41
unsigned long ptr_t
Definition types.h:25