kernfs_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kernfs_show β€” show or hide a node ✨

okay so bestie, welcome to kernfs_show(9), a page from the Kernel API Manual, and honestly? it's a little icon of a function. let's get into it 🫢


🌸 SYNOPSIS 🌸

void kernfs_show (struct kernfs_node *kn , bool show );

that's it. that's the whole vibe. two args, void return, no notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • kn β€” the kernfs_node you're gonna show or hide. this is the main character here, lowkey πŸ‘‘
  • show β€” a bool that literally just says: are we showing it or hiding it? that's the whole decision, no cap

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“

if show is false, then kn gets marked hidden and deactivated. and a hidden node? it gets ignored in future activaitons β€” yes that's how it's spelled in the original, i'm keeping it, character for character, iykyk 😭✨

if show is true, then the mark is removed and the activation state is restored. slay, we love a comeback πŸ’–

but listen β€” this function won't implicitly activate a new node in a KERNFS_ROOT_CREATE_DEACTIVATED root that hasn't been activated yet. so don't come for this function expecting it to do that, because it simply will not πŸ™ˆ

and one more thing, no cap: to avoid recursion complexities, directories aren't supported for now. that's right, directories are not invited to this party. periodt πŸ’€


🌈 SEE ALSO 🌈

the kernel file ./fs/kernfs/dir.c and honestly a whole friend group of functions β€” every single one of them, right here, no skips:

like, the whole squad. go read them, bestie, they're all waiting 🧚


⭐ sign-off ⭐

this little beauty lives in ./fs/kernfs, dated October 2026, and it's filed under kernfs_show(9) in the Kernel API Manual. that's the whole page, mwah πŸ’œπŸŽ€

πŸ“¦ where this page comes from