VM_MAP(9) Hyra Kernel Developer’s Manual VM_MAP(9)
NAME
vm_map - create/destory a virtual memory mapping
SYNOPSIS
#include <vm/map.h>
int
vm_map(struct vas vas, vaddr_t va, paddr_t pa, vm_prot_t prot, size_t count);
int
vm_unmap(struct vas vas, vaddr_t va, size_t count);
DESCRIPTION
The Hyra virtual memory mapping framework provides a machine independent interface for mapping and unmapping pages to respective page frames.
The vm_map() function creates a virtual to physical memory mapping.
The vas argument specifies the virtual address space for the mapping to be created within.
The va argument specifies the virtual address to be mapped.
The pa argument specifies the physical address that va is to be mapped to.
The prot argument specifies the virtual memory protection flags.
The count argument specifies the number of bytes to be mapped which is to be aligned to the machine’s page size.
The vm_unmap() function destroys a virtual to physical memory mapping.
The vas argument specifies the virtual address space for the mapping to be destroyed within.
The va argument specifies the virtual address to be unmapped.
The count argument specifies the number of bytes to be unmapped which is to be aligned to the machine’s page size.
AUTHORS
Ian Moffett <ian@osmora.org>
SEE ALSO
vm_map(9)
Hyra Jun 6 2024 Hyra