memory_group_unregister(9)
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
-EINVALif the memory group id is invalid - returns
-EBUSYif some memory blocks still belong to this memory group - returns
0if 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:
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_static(9)memory_group_register_dynamic(9)
mwah π β sourced from ./drivers/base, October 2026 edition. go off, kernel bestie π«Ά
π¦ 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