pfnmap_setup_cachemode_pfn(9)
π pfnmap_setup_cachemode_pfn(9) π
okay so bestie, welcome to section 9 of the Kernel API Manual β yes we're in kernel-land, bring your β¨seriousβ¨ hat but keep the sparkle. This one's all about pfnmap_setup_cachemode_pfn, and it's honestly shorter than my attention span on a good day, so let's go π«Ά
β¨ NAME β¨
pfnmap_setup_cachemode_pfn β sets up the cachemode in the pgprot for a pfn. that's it. that's the whole job. iconic minimalism π
πΈ SYNOPSIS πΈ
void pfnmap_setup_cachemode_pfn (unsigned long pfn , pgprot_t *prot );
like, you hand it a pfn and a pointer to a pgprot, and it does its little cachemode thing. no return value, no drama, no notes π
π ARGUMENTS π
pfnβ the pfn. that's literally the whole description lmao, the pfn is the pfn, we love a self-explanatory king πprotβ the pgprot to modify. this is the glow-up target, bestie, it's getting modified β¨
π¦ DESCRIPTION π¦
so what actually happens: it looks up the cachemode for pfn and stores it in prot β and here's the key part, it leaves all the other data in prot unchanged. not me being respectful of your existing bits π it only touches what it needs to touch, no cap.
for the full tea, go read pfnmap_setup_cachemode β that's the big sibling page, this one's like the lil' cousin that just points you there iykyk.
π₯ SEE ALSO π₯
Kernel file ./include/linux/pgtable.h β and like, an entire friend group of related pages, we're going to list every single one because we don't do half-finished lists here:
lazy_mmu_mode_enable(9), lazy_mmu_mode_disable(9), __task_lazy_mmu_mode_pause(9), lazy_mmu_mode_pause(9), __task_lazy_mmu_mode_resume(9), lazy_mmu_mode_resume(9), pte_batch_hint(9), set_ptes(9), clear_young_dirty_ptes(9), get_and_clear_full_ptes(9), get_and_clear_ptes(9), clear_full_ptes(9), clear_ptes(9), clear_nonpresent_ptes(9), ptep_try_set(9), flush_tlb_before_set(9), wrprotect_ptes(9), clear_flush_young_ptes(9), test_and_clear_young_ptes(9), modify_prot_start_ptes(9), modify_prot_commit_ptes(9), pfnmap_setup_cachemode(9), pfnmap_track(9), pfnmap_untrack(9)
like I said. whole friend group. go say hi π«Ά
ok and that's the page!! short, sweet, does exactly one thing and does it well β main character energy fr fr π
and that's a wrap bestie!! this lil' beauty comes from ./include/linux, dated October 2026, living its best life in section 9 of the Kernel API Manual. slay, bye ππ
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms