kmap_high_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct page to 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