kernfs_enable_ns(9)
π 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
knmust 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 π
- Kernel file
./include/linux/kernfs.h kernfs_ns_enabled(9)kernfs_path(9)
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
- 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