kernfs_next_descendant_post(9)
π
kernfs_next_descendant_post(9) β NAME β¨
okay so bestie, welcome to the Kernel API Manual entry for kernfs_next_descendant_post π and what it does is: find the next descendant for post-order walk π¦ that's the whole vibe, that's the assignment, no cap.
πΈ SYNOPSIS πΈ
struct kernfs_node * kernfs_next_descendant_post (struct kernfs_node
*pos , struct kernfs_node *root );
like literally just those two args, iykyk π«Ά
π ARGUMENTS π
posβ the current position, aka where you're at right now π and yes,NULLto initiate traversal β that's your "start me up" moment, main character energy fr.rootβ thekernfs_nodewhose descendants we're walking π this is the tree we're touring, bestie.
β DESCRIPTION β
So here's the tea β β you call this to find the next descendant to visit for post-order traversal of root's descendants π§ and the important lore is this: root is included in the iteration and the last node to be visited π like it's not just the venue, it's also the final guest of honor, periodt.
π RETURN π
it hands you back the next descendant to visit, or NULL when done π β that NULL is your little "we're so done here" signal, bestie, respect it π
π¦ SEE ALSO π¦
Kernel file ./fs/kernfs/dir.c π (yes the whole squad lives there) and the extended friend group:
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_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)
go read them all, they ate π₯
and that's the whole page bestie πβ¨ this lil masterpiece came from ./fs/kernfs and it's dated October 2026 ποΈπ so go forth and traverse your descendants in post-order, you absolute icon ππ
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