MOS Source Code
Loading...
Searching...
No Matches
cow.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
5#include "mos/mm/mm.h"
7
15vmap_t *cow_clone_vmap_locked(mm_context_t *target_mmctx, vmap_t *source_vmap);
16
27vmap_t *cow_allocate_zeroed_pages(mm_context_t *handle, size_t npages, ptr_t vaddr, valloc_flags hints, vm_flags flags);
vmap_t * cow_clone_vmap_locked(mm_context_t *target_mmctx, vmap_t *source_vmap)
Copy-on-write a page range.
Definition cow.c:62
vmap_t * cow_allocate_zeroed_pages(mm_context_t *handle, size_t npages, ptr_t vaddr, valloc_flags hints, vm_flags flags)
Allocate zero-on-demand pages at a specific address.
Definition cow.c:79
valloc_flags
Definition paging.h:20
vm_flags
Definition platform.h:40
Definition mm.h:58
unsigned long ptr_t
Definition types.h:25