rb_find_add(9)
πΈ NAME πΈ
okay so bestie, welcome to rb_find_add(9) from the Kernel API Manual β¨ β this is the page where we find an equivalent @node in @tree, or add @node. literally the whole vibe.
β¨ SYNOPSIS β¨
here's the signature, character for character, no edits:
struct rb_node * rb_find_add (struct rb_node *node , struct rb_root
*tree , int (*cmp)(struct rb_node *, const struct rb_node *) );
π«Ά ARGUMENTS π«Ά
three little besties walk in:
nodeβ node to look-for / inserttreeβ tree to search / modifycmpβ operator defining the node order
π DESCRIPTION π
okay so the tea β: it returns the rb_node matching node, or NULL when no match is found and node is inserted. periodt.
π SEE ALSO π
go check these out too, iykyk:
- Kernel file
./tools/include/linux/rbtree.h rbtree_postorder_for_each_entry_safe(9)rb_add_cached(9)rb_add(9)rb_find(9)rb_find_first(9)rb_next_match(9)rb_for_each(9)
mwah π β this one came from source/version ./tools/include/linux, dated October 2026, and it's the rb_find_add(9) page, 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