kernfs_remove(9)
π kernfs_remove β from the Kernel API Manual, bestie
Okay so picture this: it's giving "delete this whole tree, actually" energy. We're in kernfs_remove(9) territory, and honestly? It's iconic. Let me put you on. π
β¨ NAME β¨
kernfs_remove β remove a kernfs_node recursively. Yes, recursively. It doesn't just take out the one thing, it takes out the whole friend group. π«Ά
πΈ SYNOPSIS πΈ
void kernfs_remove (struct kernfs_node *kn );
That's the whole thing. One argument, void return, no drama (mostly). β
π ARGUMENTS π
knβ thekernfs_nodeto remove. That's it, that's the whole vibe check. Hand it over and it's gone gone. π
π¦ DESCRIPTION π¦
Remove kn along with all its subdirectories and files.
That's the whole description, and tbh it ate. Not a single extra word, no cap. So like, be super sure before you call it β because everything nested under kn is coming with it. Every subdirectory. Every file. All of it. It's the main character of deletion, and the supporting cast does NOT survive. π₯ π
Lowkey a good moment to double-check your pointer before you commit, bestie. Once it's in there, there's no undo button and no "wait no I didn't mean it" text. π
π SEE ALSO π
Kernel file ./fs/kernfs/dir.c, plus the entire extended 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_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_break_active_protection(9)kernfs_unbreak_active_protection(9)kernfs_remove_self(9)kernfs_remove_by_name_ns(9)kernfs_rename_ns(9)
Okay that's the whole page, you're caught up, you're so smart, mwah. π§ Lives at ./fs/kernfs, dated October 2026 β kernfs_remove(9), out. π
β¨
π¦ 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