kernfs_put_active(9)
β¨ kernfs_put_active(9) β¨
okay so real talk β this is a page from the Kernel API Manual, section 9 (that's the kernel-functions girlypop section, iykyk π ). The whole thing is literally about one (1) tiny function, and honestly? She's short but she's important. Let's get into it π«Ά
πΈ NAME πΈ
kernfs_put_active β drop (put) an active reference to a kernfs_node π
π¦ SYNOPSIS π¦
void kernfs_put_active (struct kernfs_node *kn );
π ARGUMENTS π
knβ thekernfs_nodeyou're putting an active reference to. That's it. That's the whole argument list. Slay. β¨
π§ DESCRIPTION π§
So here's the tea β: you call this to put an active reference to kn. Like, you had an active ref, and now you're giving it back. Very giving, very generous of you.
And the iconic part? This function is a noop if kn is NULL π β meaning if you pass it a null pointer it just... does nothing. No crash, no drama, no screaming. It's giving "unbothered, moisturized, in her lane." So you can call it on NULL and she will simply not react. Queen behavior, honestly π.
π SEE ALSO π
kernfs lives in the kernel file ./fs/kernfs/dir.c and there is so much family here, bestie β the whole extended kernfs cinematic universe π:
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_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 I said. Whole friend group. Go read them, they're all baddies ππ₯
ok that's the page!! go put those active references back before someone yells at you fr fr π
and that's a wrap, bestie β this one came from the source tree at ./fs/kernfs, dated October 2026, and it's filed under kernfs_put_active(9) forever and ever. periodt ππ
π¦ 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