kmap_high_get(9)
π kmap_high_get (kernel API manual, bestie)
okay so this is from the Kernel API Manual and it's literally about pinning a highmem page into memory. no cap, that's the whole vibe. β¨
πΈ NAME
kmap_high_get β pin a highmem page into memory π
β¨ SYNOPSIS
void * kmap_high_get (const struct page *page );
π«Ά ARGUMENTS
pageβ thestruct pageto pin. that's it, that's the whole argument. π
π« DESCRIPTION
Returns the page's current virtual memory address, or NULL if no mapping exists. so like, it either gives you the address or it gives you nothing, and you need to be normal about it. π
If and only if a non null address is returned, then a matching call to kunmap_high is necessary. if and only if, bestie β read it again. no address, no kunmap_high call. address returned, you do the matching kunmap_high call. that's the rule. π
This can be called from any context. yes, any context. slay. π₯
π SEE ALSO
Kernel file ./mm/highmem.c, plus these iconic little functions:
kisses from the ./mm directory, October 2026 edition π¦π go pin that page and stay hydrated fr fr π
π¦ 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