PMAP_OBJECT_INIT_PT(9)
πΈ NAME πΈ
pmap_object_init_pt β initialize page tables for a VM object. That's the whole name vibe, bestie: page tables, VM object, initialized. Slay.
β¨ SYNOPSIS β¨
okay so first you gotta include these three cuties exactly like this:
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_object_init_pt(pmap_t pmap, vm_offset_t addr, vm_object_t object,
vm_pindex_t pindex, vm_size_t size, int limit);
π DESCRIPTION π
So pmap_object_init_pt() preloads the page table entries into the physical map you pass as pmap, for the given object at the virtual address addr, for size bytes, beginning at the page index pindex within that object. And when it creates the mapping, the map bits limit are heeded β like, respect the limit, periodt. π
π¦ IMPLEMENTATION NOTES π¦
This function is not strictly required by an architecture's pmap(9) implementation, but it does provide performance benefits if implemented. Highkey worth it if you're implementing it, no cap.
It is intended to eliminate the blast of soft faults on process startup, and immediately following a call to mmap(2). The way that's giving "no more soft-fault chaos" energy ππ₯
π SEE ALSO π
go read these next, bestie:
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. Shoutout to the author, iconic behavior fr fr π«Ά
mwah π that's the whole page β it's from Debian, dated July 21, 2003, and it's PMAP_OBJECT_INIT_PT(9). bye bestie πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms