rb_find_add_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rb_find_add_rcu β€” the kernel API manual, bestie edition ✨

Okay so bestie, gather round, because we're talking about rb_find_add_rcu from the Kernel API Manual and honestly? It's giving efficient. πŸ’…


🌸 NAME 🌸

rb_find_add_rcu β€” find the equivalent @node in @tree, or add @node 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct rb_node * rb_find_add_rcu (struct rb_node *node , struct rb_root
*tree , int (*cmp)(struct rb_node *, const struct rb_node *) );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • node β€” the node to look-for / insert ✨ literally both jobs, she's versatile
  • tree β€” the tree to search / modify 🌳 search first, modify if needed, main character energy
  • cmp β€” the operator defining the node order 🧚 this is the vibe check that decides who goes where

πŸ’– DESCRIPTION πŸ’–

So what does it do? It adds a Store-Release for link_node. No cap. πŸ”₯

It returns the rb_node matching node, or NULL when no match is found and node is inserted. So like, either you get your match back, or you get NULL and she's already been slotted into the tree. Periodt. πŸ’€


🌈 SEE ALSO 🌈


πŸ’œ That's the whole page, bestie β€” every flag, every argument, every reference, all intact. Go forth and rbtree responsibly. πŸ“

Mwah πŸ’‹ β€” this page lives under ./include/linux, dropped October 2026, and that's the tea. See you in the next manpage, babe! πŸŽ€βœ¨

πŸ“¦ where this page comes from