hmat_get_ex...r_cache_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hmat_get_extended_linear_cache_size πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, the Kernel API Manual, we're doing big-kid kernel stuff today and honestly? you're gonna slay this one. this page is literally called hmat_get_ex...r_cache_size(9) in the header because man page headers truncate and honestly it's giving "contact name saved as a whole sentence" energy 😭 but the real, full, un-abbreviated name is down below, promise 🫢


✨ NAME ✨

hmat_get_extended_linear_cache_size β€” retrieve the extended linear cache size. that's it. that's the whole job. it retrieves, it's extended, it's linear, it's a cache size. iconic behavior, no notes πŸ’…


✨ SYNOPSIS ✨

int hmat_get_extended_linear_cache_size (struct resource *backing_res ,
int nid , resource_size_t *cache_size );

look at her. three params, int return, clean lines. we love a signature that knows what it wants πŸ’–


✨ ARGUMENTS ✨

  • backing_res β€” the resource from the backing media, like, the actual physical-ish thing the cache is backing onto. that's your main character.
  • nid β€” the node id for the memory region. just tell her which node, she's not a mind reader bestie 🧚
  • cache_size β€” this one's an Output param, meaning she writes into it: the size of the extended linear cache. so you pass the pointer and she fills it in for you. teamwork!! πŸŽ€

✨ RETURN ✨

  • 0 on success πŸŽ‰ (the good ending)
  • Errno on failure πŸ’€ (the "something went sideways, check your errno" ending)

✨ SEE ALSO ✨

  • Kernel file ./drivers/acpi/numa/hmat.c β€” go read the source, iykyk πŸ”₯
  • acpi_get_genport_coordinates(9) β€” another page in the same little friend group 🌸
ngl the whole "extended linear cache" thing lives over in the ACPI NUMA / HMAT corner of the kernel, so if you're lost, that's your neighborhood bestie πŸ¦‹

so yeah, that's the whole page, short and sweet, lowkey a vibe check pass with flying colors ⭐

sign-off time πŸŽ€ this little beauty comes from ./drivers/acpi/numa and it's dated October 2026 β€” so yeah, she's from the future, obviously she's ahead of the game πŸ‘‘βœ¨

πŸ“¦ where this page comes from