memory_group...ister_static(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


byeee πŸ’… β€” signing off from ./drivers/base, October 2026, with love from the Kernel API Manual. πŸŽ€

πŸ“¦ where this page comes from