hmat_get_ex...r_cache_size(9)
π 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β theresourcefrom 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 β¨
0on success π (the good ending)Errnoon 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
- 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