MOS Source Code
Loading...
Searching...
No Matches
pml5.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
6
7void pml5_traverse(pml5_t pml5, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data);
8
9__nodiscard bool pml5_destroy_range(pml5_t pml5, ptr_t *vaddr, size_t *n_pages);
10
11pml5e_t *pml5_entry(pml5_t pml5, ptr_t vaddr);
12
13bool pml5e_is_present(const pml5e_t *pml5e);
14
bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
#define __nodiscard
Definition mos_global.h:35
pml5e_t * pml5_entry(pml5_t pml5, ptr_t vaddr)
Definition pml5.c:23
bool pml5e_is_present(const pml5e_t *pml5e)
Definition pml5.c:29
pml4_t pml5e_get_or_create_pml4(pml5e_t *pml5e)
Definition pml5.c:35
void pml5_traverse(pml5_t pml5, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data)
Definition pml5.c:12
__nodiscard bool pml5_destroy_range(pml5_t pml5, ptr_t *vaddr, size_t *n_pages)
Definition pml5.c:17
pml4e_t pml5e_t
Definition pml_types.h:79
unsigned long ptr_t
Definition types.h:25