pat_pfn_immune_to_uc_mtrr(9)
β¨ pat_pfn_immune_to_uc_mtrr(9) β¨
okay so this is from the Kernel API Manual bestie, and it's literally one little function that answers one very specific question π
πΈ NAME πΈ
pat_pfn_immune_to_uc_mtrr β the vibe check that tells you whether the PAT memory type of @pfn cannot be overridden by the UC MTRR memory type π
Like. It's asking "is this page frame immune or not" and honestly same.
π¦ SYNOPSIS π¦
bool pat_pfn_immune_to_uc_mtrr (unsigned long pfn );
returns a bool, takes an unsigned long pfn, that's the whole thing, no cap β¨
π ARGUMENTS π
pfnβ the page frame number you wanna check π that's it, that's the argument
π DESCRIPTION π
π¨ Only to be called when PAT is enabled. π¨ like for real, don't come at it with PAT disabled, that's not the move π
So here's the tea, bestie: it returns true if the PAT memory type of pfn is UC, UC-, or WC π
And it returns false in other cases. that's it. that's the function. iconic behaviour honestly π«Ά
π SEE ALSO π
Kernel file ./arch/x86/mm/pat/memtype.c and its little friend group:
go read those next, iykyk π
β sign-off β
mwah, that's the whole page π it lives over in ./arch/x86/mm/pat and it's stamped October 2026, so mark your calendars bestie ποΈβ¨
π¦ 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