kernfs_get_active(9)
π kernfs_get_active(9) π
okay so bestie, welcome to the Kernel API Manual page for kernfs_get_active(9) β yes the manual name is literally that, iykyk, and we're getting into it π«Ά
β¨ NAME β¨
kernfs_get_active β get an active reference to kernfs_node πΈ
π¦ SYNOPSIS π¦
struct kernfs_node * kernfs_get_active (struct kernfs_node *kn );
like, that's the whole vibe. short and iconic, no cap π
π ARGUMENTS π
knβ thekernfs_nodeyou want to get an active reference to. that's it. that's the arg π
π DESCRIPTION π
so basically you call this to get an active reference of kn. that's the main character move β¨
and here's the slay detail: this function is noop if kn is NULL. so if kn is NULL, nothing happens at all β it just... vibes. doesn't crash, doesn't complain, literally noop π§ lowkey the most chill behaviour ever.
β RETURN β
- pointer to
knon success π NULLon failure π
that's it, that's the return. simple, clean, gorgeous.
π SEE ALSO π
kernel file ./fs/kernfs/dir.c β and honestly the whole friend group is here, so let's run through the crew fr fr:
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_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_show(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, an entire group chat of kernfs functions. go say hi to all of them π π₯
okay and one last lil sign-off π β this page lives in ./fs/kernfs, dated October 2026, and it's filed under kernfs_get_active(9). mwah, that's the page, go be an active reference bestie π¦β¨π
π¦ 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