memory_group_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, you're looking at memory_group_unregister(9) from the Kernel API Manual, and it's giving β€œclean up your memory group” energy. πŸ’…

NAME ✨

memory_group_unregister - Unregister a memory group. periodt.

SYNOPSIS 🧚

the signature is literally:

int memory_group_unregister (int mgid );

ARGUMENTS πŸŽ€

  • mgid β€” the memory group id. that's the whole vibe. 🫢

DESCRIPTION πŸ’–

Unregister a memory group. If any memory block still belongs to this memory group, unregistering will fail. no cap. 😭

here's the return-value tea β˜•:

  • returns -EINVAL if the memory group id is invalid
  • returns -EBUSY if some memory blocks still belong to this memory group
  • returns 0 if unregistering succeeded
lowkey important: if blocks are still attached, it is not gonna let you unregister. that's the -EBUSY vibe check. πŸ’€

SEE ALSO 🌈

Kernel file ./drivers/base/memory.c is the spot, and the related calls are:


mwah πŸ’‹ β€” sourced from ./drivers/base, October 2026 edition. go off, kernel bestie 🫢

πŸ“¦ where this page comes from