PMAP_IS_PREFAULTABLE(9)

πŸ’– PMAP_IS_PREFAULTABLE πŸ’–

okay bestie, so this one is a kernel developer's manual page, and it's literally the cutest tiny little function that answers one very specific question. it's pmap_is_prefaultable, and no cap, it's a whole vibe. πŸ¦‹


✨ NAME ✨

pmap_is_prefaultable β€” determine if a page may be prefaulted

like... it just tells you if a page can get prefaulted. that's it. that's the girl. πŸ’…


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>

boolean_t
pmap_is_prefaultable(pmap_t pmap, vm_offset_t va);

look at her πŸ₯Ή three little includes and one perfect function signature. ate.


πŸŽ€ DESCRIPTION πŸŽ€

The pmap_is_prefaultable() function provides a means of determining if the page residing at virtual address va in the physical map pmap may be pre-faulted into main memory.

ngl that's the whole deal β€” you hand it a physical map and a virtual address, and it tells you whether that page is allowed to get pre-faulted into main memory. it's giving gatekeeper but in a helpful way, not a toxic way. πŸ‘‘

This is a helper function which is called by vm_fault_prefault(9).

fr fr, she's a little helper β€” she doesn't run the show, she just shows up when vm_fault_prefault(9) needs her. main character energy in a supporting role, iykyk. πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

go read those too, bestie, they're the friend group. 🌈


πŸ’– AUTHORS πŸ’–

This manual page was written by Bruce M Simpson <bms@spc.org>.

shoutout to Bruce, iconic behavior, thank you for your service 🫢


quick vibe check: this page is a Debian release from July 21, 2003, and it lives in the PMAP_IS_PREFAULTABLE(9) section of the Kernel Developer's Manual. so like... vintage but make it ✨eternal✨. periodt. πŸ’…πŸ’–πŸŒΈ
πŸ“¦ where this page comes from