node_add_cache(9)
β¨ NAME β¨
okay so bestie, this page is node_add_cache(9), straight from the Kernel API Manual (section 9), and it's here to add cache attribute to a memory node. That's the whole assignment: one function, one cache-attribute moment for a memory node. π
π« SYNOPSIS π«
here's the exact signature, no cap β keep it cute and keep it copied:
void node_add_cache (unsigned int nid , struct node_cache_attrs
*cache_attrs );
it returns void, so there's no return value to obsess over. β¨
π ARGUMENTS π
two arguments, both iconic:
nidβ the node identifier that has new cache attributes. it's the "which node is getting this" of it all. π«Άcache_attrsβ the attributes for the cache being added. it's thestruct node_cache_attrs *you're handing over, and it's literally the cache info in question. π
π SEE ALSO π
if you're going down the rabbit hole (and honestly? you should, iykyk), go peek at these:
- Kernel file
./drivers/base/node.c struct node_access_nodes(9)node_set_perf_attrs(9)node_update_perf_attrs(9)struct node_cache_info(9)register_memory_node_under_compute_node(9)register_node(9)unregister_node(9)
mwah π β source/version: ./drivers/base; date: October 2026; page: node_add_cache(9) β¨
π¦ 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