PMAP_PROTECT(9)
π PMAP_PROTECT π
okay bestie, sit down, hydrate, and let me tell you about pmap_protect(9) β she's a Kernel Developer's Manual girlie, section 9, and she does exactly one thing and she does it flawlessly. β¨
πΈ NAME πΈ
pmap_protect β set physical page protection π
like. the name is the plot. she sets the protection. that's the whole vibe. no cap.
π¦ SYNOPSIS π¦
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
vm_prot_t prot);
yes you need all three includes, don't try to be cute and skip one, she will Not compile for you π
π DESCRIPTION π
so the tea is this: the pmap_protect() function sets the physical page permissions to prot for all the physical pages in the physical map pmap, in the virtual address range between sva and eva. π
that's it. that's her whole job. range in, permissions out, main character energy only. β¨
β SEE ALSO β
pmap(9)β go read her too, she's iconic, they're a duo π«Ά
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. absolute legend, we stan. π
and that's the whole page, bestie!! this one came from Debian, dated July 18, 2014 β yeah she's a little vintage but vintage is just archive-core, it's giving timeless. mwah, go protect some pages. π ππ¦
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms