PMAP_QENTER(9)
π PMAP_QENTER π
okay bestie, so this is PMAP_QENTER(9), a Kernel Developer's Manual page, and it's literally all about managing temporary kernel space mappings. yes, the whole page. no cap. β¨
πΈ NAME πΈ
pmap_qenter, pmap_qremove β the duo that manages temporary kernel space mappings π«Ά
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_qenter(vm_offset_t sva, vm_page_t *m, int count);
void
pmap_qremove(vm_offset_t sva, int count);
π¦ DESCRIPTION π¦
okay so pmap_qenter() takes a linear array of count pointers to wired pages *m, and it enters each one of those pages into the kernel virtual address (KVA) space, starting at the address sva. π
the pages get mapped non-executable, if possible. and like, key word: if possible. for example, non-PAE i386 simply has no capability to map pages non-executable. it's giving "we tried our best." π
then pmap_qremove() does the reverse vibe: it tears out a mapping from the kernel virtual address space, beginning at sva and running for count pages. bye bestie π
π IMPLEMENTATION NOTES π
pmap_qenter() is intended for temporary mappings that do not require page modification or reference counting. old mappings are simply overwritten β no ceremony, no goodbye, they're just gone. π₯
and the pages must be wired into physical memory. like, that's not optional, that's the whole thing.
the corresponding pmap_qremove() is intended to remove those temporary mappings. they're a matching set, iykyk. π
π SEE ALSO π
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org>. thank you king π«Ά
and that's the whole thing, bestie β¨ this was the Debian build, dated February 15, 2018, page PMAP_QENTER(9) β go map something temporary and slay π
π
π¦ 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