memory_group...ister_static(9)
π NAME π
okay so bestie, this is the Kernel API Manual page for memory_group_register_static β the function that registers a static memory group. Thatβs literally the whole vibe: register a static memory group. Slay. β¨
π SYNOPSIS π
int memory_group_register_static (int nid , unsigned long max_pages );
π ARGUMENTS π
nidβ the node id, bestie. Thatβs the whole argument. No cap. π«Άmax_pagesβ the maximum number of pages weβll have in this static memory group. Iconic limit behavior. π
πΈ DESCRIPTION πΈ
Register a new static memory group and return the memory group id. All memory in the group belongs to a single unit, such as a DIMM. π§
All memory belonging to a static memory group is added in one go to be removed in one go β itβs static, periodt. π
It returns an error if itβs out of memory, if the node id is invalid, if no new memory groups can be registered, or if max_pages is invalid (0). Otherwise, it returns the new memory group id. Literally that simple. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/base/memory.cβ and the whole friend group:memory_block_advise_max_size(9),memory_block_advised_max_size(9),memory_block_add_nid_early(9),walk_memory_blocks(9),for_each_memory_block(9),memory_group_register_dynamic(9),memory_group_unregister(9). π
byeee π
β signing off from ./drivers/base, October 2026, with love from the Kernel API Manual. π
π¦ 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