kernfs_enable_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kernfs_enable_ns(9) β€” like, the Kernel API Manual, but make it make sense πŸŽ€

okay bestie, so this one is from the Kernel API Manual and it's literally about turning namespaces on for a directory in kernfs. short page, main character energy, let's go ✨


🌸 NAME 🌸

kernfs_enable_ns β€” enable namespace under a directory

like, the whole point. that's the vibe check and it passed 🫢


✨ SYNOPSIS ✨

void kernfs_enable_ns (struct kernfs_node *kn );

that's it. that's the signature. no cap, she's a void β€” she gives, she doesn't take back 😌


πŸ¦‹ ARGUMENTS πŸ¦‹

  • kn β€” the directory of interest, and lowkey it should be empty. that's not a suggestion bestie, that's the assignment πŸ’€

🌈 DESCRIPTION 🌈

so here's the tea: you call this right after kn is created, and its whole job is to enable namespace under it. timing matters, it's giving "right place, right time" πŸ’–

and now the rules, because there are always rules:

  • all children of kn must have non-NULL namespace tags. all of them. no stragglers, no "oops I forgot one" πŸ™ˆ
  • only the ones that match the super_block's tag will be visible. everyone else? not invited to the function. invisible. blocked. periodt βœ‹
⭐ ngl, get this wrong and stuff just… won't show up. so double-check your namespace tags before you go enabling anything, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, iykyk πŸ“šπŸ’œ


aaaand that's the page!! mwah πŸ’‹ this little icon came from ./include/linux, dated October 2026 β€” slay, iconic, no notes πŸ§šβ€β™€οΈπŸŒΈπŸ’…

πŸ“¦ where this page comes from