MOS Source Code
Loading...
Searching...
No Matches
pml1.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
6
7void pml1_free(pml1_t pml1);
8
9void pml1_traverse(pml1_t pml1, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data);
10
11__nodiscard bool pml1_destroy_range(pml1_t pml1, ptr_t *vaddr, size_t *n_pages);
12
13pml1e_t *pml1_entry(pml1_t pml1, ptr_t vaddr);
14
15bool pml1e_is_present(const pml1e_t *pml1e);
16
17pfn_t pml1e_get_pfn(const pml1e_t *pml1e);
bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
#define __nodiscard
Definition mos_global.h:35
void pml1_traverse(pml1_t pml1, ptr_t *vaddr, size_t *n_pages, pagetable_walk_options_t callback, void *data)
Definition pml1.c:14
void pml1_free(pml1_t pml1)
pfn_t pml1e_get_pfn(const pml1e_t *pml1e)
Definition pml1.c:55
bool pml1e_is_present(const pml1e_t *pml1e)
Definition pml1.c:50
__nodiscard bool pml1_destroy_range(pml1_t pml1, ptr_t *vaddr, size_t *n_pages)
Definition pml1.c:26
pml1e_t * pml1_entry(pml1_t pml1, ptr_t vaddr)
Definition pml1.c:45
unsigned long long pfn_t
Definition types.h:41
unsigned long ptr_t
Definition types.h:25