PMAP_UNWIRE(9)
π PMAP_UNWIRE π
okay bestie, so this is the man page for pmap_unwire β it's a <pink>Kernel Developer's Manual</pink> moment, from section 9 of the manual (that's the kernel interface girlies, iykyk). Buckle up, it's giving low-level memory magic β¨
πΈ NAME πΈ
pmap_unwire β unwire a range of virtual pages πͺ
π SYNOPSIS π
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_unwire(pmap_t pmap, vm_offset_t start, vm_offset_t end);
yes bestie, those three includes are non-negotiable, copy them exactly fr fr π
β¨ DESCRIPTION β¨
So the function pmap_unwire() does exactly what it says on the tin: it removes the wired attribute from each and every one of the virtual-to-physical page mappings inside the virtual address range that runs from start to end of the physical map pmap. π
Now here's the tea β β every valid mapping within that range is REQUIRED to have the wired attribute set. Like, that's the deal. That's the contract.
Invalid mappings? Those get ignored, no cap π β because they literally cannot have the wired attribute set in the first place. Not our problem, not our business.
π¦ NOTES π¦
Heads up bestie: the only function that can set the wired attribute of a virtual-to-physical page mapping is pmap_enter(9). That's the one and only. The way that it's the exclusive vibe-setter here... iconic π
π SEE ALSO π
go read those too, they're all part of the same friend group π«Ά
π AUTHORS π
This manual page was written by Alan L. Cox <alc@rice.edu>. slay, thank you for your service king π«‘β¨
and that's a wrap bestie!! this page came to you from the Debian edition of the manual, dated July 17, 2014 π no cap, go unwire some pages responsibly ππΈπ
π¦ 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) 2014 Alan L. Cox <alc@rice.edu>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms