__ns_tree_gen_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __ns_tree_gen_id β€” Kernel API Manual ✨

okay bestie, we're diving into the Kernel API Manual for __ns_tree_gen_id(9). buckle up, it's giving namespace id creation energy πŸŽ€


🌸 NAME 🌸

__ns_tree_gen_id β€” literally generates a new namespace id, that's the whole gig πŸ’…


✨ SYNOPSIS ✨

u64 __ns_tree_gen_id (struct ns_common *ns , u64 id );

🫢 ARGUMENTS 🫢

  • ns β€” the namespace you want to generate an id for. that's the main character right there πŸ‘‘
  • id β€” if this is non-zero, then this is the initial namespace and this is a fixed id. so like, you're calling the shots on the number πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: it generates a new namespace id and assigns it to the namespace. slay ✨

and here's the iconic part β€” all namespace types share the same id space, so you can compare them directly. IOW, when two ids of two namespaces are equal, they are identical. no cap, fr fr πŸ’―


🌈 SEE ALSO 🌈


πŸ’– go read those, iykyk β€” they're all hanging out in ./kernel and they're lowkey obsessed with each other 🧚

mwah πŸ’œ this page lives in ./kernel, from the October 2026 edition of the Kernel API Manual β€” catch you in the next one, bestie! πŸ“

πŸ“¦ where this page comes from