MOS Source Code
Loading...
Searching...
No Matches
iterator.h File Reference
+ Include dependency graph for iterator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pagetable_iter_range_t
 
struct  pagetable_iter_t
 

Functions

void pagetable_iter_init (pagetable_iter_t *it, pgd_t pgd, ptr_t vaddr, ptr_t end)
 Initialize a pagetable iterator.
 
pagetable_iter_range_tpagetable_iter_next (pagetable_iter_t *it)
 Get the next page table range.
 

Function Documentation

◆ pagetable_iter_init()

void pagetable_iter_init ( pagetable_iter_t * it,
pgd_t pgd,
ptr_t vaddr,
ptr_t end )

Initialize a pagetable iterator.

Parameters
itThe iterator to initialize.
pgdThe page directory to iterate.
vaddrThe virtual address to start iterating from.
endThe virtual address to stop iterating at.

Definition at line 82 of file iterator.c.

Referenced by mm_dump_pagetable(), and mmstat_sysfs_pagetable_show().

◆ pagetable_iter_next()

pagetable_iter_range_t * pagetable_iter_next ( pagetable_iter_t * it)

Get the next page table range.

Parameters
itThe iterator to get the next range from.
Returns
pagetable_iter_range_t*

Definition at line 97 of file iterator.c.

Referenced by mm_dump_pagetable(), and mmstat_sysfs_pagetable_show().

+ Here is the call graph for this function: