![]() |
MOS Source Code
|
#include "mos/mm/mm.hpp"
Go to the source code of this file.
Functions | |
PtrResult< vmap_t > | cow_clone_vmap_locked (MMContext *target_mmctx, vmap_t *source_vmap) |
Copy-on-write a page range. | |
PtrResult< vmap_t > | cow_allocate_zeroed_pages (MMContext *handle, size_t npages, ptr_t vaddr, VMFlags flags, bool exact=false) |
Allocate zero-on-demand pages at a specific address. | |
Copy-on-write a page range.
target_mmctx | The mm context to copy to |
source_vmap | The vmap to copy from |
Definition at line 62 of file cow.cpp.
Referenced by process_do_fork().
PtrResult< vmap_t > cow_allocate_zeroed_pages | ( | MMContext * | handle, |
size_t | npages, | ||
ptr_t | vaddr, | ||
VMFlags | flags, | ||
bool | exact = false ) |
Allocate zero-on-demand pages at a specific address.
handle | The paging handle to use |
npages | The number of pages to allocate |
vaddr | The virtual address to allocate at |
flags | VM flags to use |
exact | Allocation at the exact address |
Definition at line 81 of file cow.cpp.
Referenced by mmap_anonymous(), process_do_execveat(), and thread_new().