unregister_node(9)
π unregister_node(9) β from the Kernel API Manual, bestie
okay so picture this: it's a whole manual page, it lives in the Kernel API Manual, and its name is unregister_node(9). and today we're reading it together, because honestly? it's short, it's sweet, and it's lowkey important. let's go π«Ά
β¨ NAME β¨
unregister_node β unregister a node device
like, the node device? it's leaving. we're unregistering it. periodt. π
πΈ SYNOPSIS πΈ
void unregister_node (int nid );
that's it. that's the whole vibe check. returns nothing, takes one int. iconic minimalism. π
π¦ ARGUMENTS π¦
nidβ the nid of the node that's going away π like, this is the node id of the node device that's about to be unregistered. it's leaving the group chat.
π DESCRIPTION π
So this function unregisters the node device at node id nid. that's the whole job. slay.
but here's the part you cannot skip, bestie β and I mean it, this is the main character of the caveats:
All the devices on the node must be unregistered before calling this function. β οΈ
so like, don't call this while the node still has devices hanging around on it. unregister those first. this function is the last one out, turning off the lights. π
π₯ SEE ALSO π₯
Kernel file ./drivers/base/node.c, plus these little friends:
struct node_access_nodes(9)node_set_perf_attrs(9)node_update_perf_attrs(9)struct node_cache_info(9)node_add_cache(9)register_memory_node_under_compute_node(9)register_node(9)
go read those too, iykyk π
π sign-off π
and that's the page!! it comes from ./drivers/base and it's dated October 2026, and it's signed unregister_node(9) at the top and bottom like a little bookend π ngl, a clean lil page. no notes. go unregister those devices first tho, fr fr πβ¨
π¦ 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