rb_find_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 / insert
  • tree β€” tree to search / modify
  • cmp β€” 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:


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