rb_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rb_find πŸ’–

okay so bestie, this is rb_find(9) from the Kernel API Manual. We're doing a tree search for a key, and the whole vibe is β€œfind the matching node or return NULL.” No cap. πŸŽ€

✨ NAME ✨

rb_find β€” find @key in tree @tree πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

the signature, literally verbatim:

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

πŸ’… ARGUMENTS πŸ’…

  • key β€” key to match. This is the thing you're looking for, bestie. πŸ”
  • tree β€” tree to search. The main character tree in question. 🌳
  • cmp β€” operator defining the node order. She's the one deciding how the nodes line up, iykyk. 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns the rb_node matching key or NULL. That's the whole description, and honestly it ate. ✨

🌈 SEE ALSO 🌈


mwah πŸ’‹βœ¨ source/version: ./tools/include/linux; date: October 2026; and this iconic page is rb_find(9). 🫢

πŸ“¦ where this page comes from