kernfs_show(9)
π 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β thekernfs_nodeyou're gonna show or hide. this is the main character here, lowkey πshowβ aboolthat 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:
kernfs_path_from_node_locked(9)kernfs_name(9)kernfs_path_from_node(9)pr_cont_kernfs_name(9)pr_cont_kernfs_path(9)kernfs_get_parent(9)kernfs_name_hash(9)kernfs_link_sibling(9)kernfs_unlink_sibling(9)kernfs_get_active(9)kernfs_put_active(9)kernfs_drain(9)kernfs_get(9)kernfs_put(9)kernfs_node_from_dentry(9)kernfs_add_one(9)kernfs_find_ns(9)kernfs_find_and_get_ns(9)kernfs_walk_and_get_ns(9)kernfs_create_root(9)kernfs_destroy_root(9)kernfs_root_to_node(9)kernfs_create_dir_ns(9)kernfs_create_empty_dir(9)kernfs_next_descendant_post(9)kernfs_activate(9)kernfs_remove(9)kernfs_break_active_protection(9)kernfs_unbreak_active_protection(9)kernfs_remove_self(9)kernfs_remove_by_name_ns(9)kernfs_rename_ns(9)
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
- 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