rb_find_first(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

rb_find_first β€” find the first @key in @tree, bestie ✨

hey hi hello 🫢 welcome to the Kernel API Manual page for rb_find_first(9) β€” yes, the iconic little rbtree lookup. let's get into it, no cap πŸ’…


✨ SYNOPSIS ✨

struct rb_node * rb_find_first (const void *key , const struct rb_root *tree , int (*cmp)(const void *key, const struct rb_node *) );

🌸 ARGUMENTS 🌸

  • key β€” the key you're matching, periodt πŸ”‘
  • tree β€” the tree you're searching, iykyk 🌳
  • cmp β€” the operator that defines node order, literally 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so it returns the leftmost node matching key, or NULL. that's the whole description β€” short, sweet, and honestly iconic πŸ’–


πŸŽ€ SEE ALSO πŸŽ€

kernel file: ./tools/include/linux/rbtree.h πŸ“

go check these besties, fr fr πŸ‘‘


okay that's the page, bestie 🫢 β€” source/version: ./tools/include/linux, dated October 2026. bye πŸ’‹

πŸ“¦ where this page comes from