unregister_pernet_subsys(9)
π NAME π
unregister_pernet_subsys β unregister a network namespace subsystem. This is the Kernel API Manual page for it, bestie, and it's giving βcleanup eraβ energy π
β¨.
β¨ SYNOPSIS β¨
void unregister_pernet_subsys (struct pernet_operations *ops );
πΈ ARGUMENTS πΈ
opsβ the pernet operations structure to manipulate. That's it, that's the argument, no cap π«Ά.
π DESCRIPTION π
Okay so here's the tea: unregister_pernet_subsys removes the pernet operations structure from the list that's used when network namespaces are created or destroyed. Literally removes it from the list, periodt β¨.
In addition β because it's an overachiever β it runs the exit method for all existing network namespaces. All of them, bestie ππ
Lowkey important detail: the removal-from-the-list part and the run-the-exit-method-for-all-existing-network-namespaces part are both in the description. Keep both in your brain, iykyk π§π.
π¦ SEE ALSO π¦
- Kernel file
./net/core/net_namespace.c net_ns_get_ownership(9)net_ns_barrier(9)get_net_ns(9)register_pernet_subsys(9)register_pernet_device(9)unregister_pernet_device(9)
π kiss kiss, source/version ./net/core, dated October 2026 β unregister_pernet_subsys(9) out! π«Άπ
π¦ 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