hash_add_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hash_add_rcu(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a little function with main character energy, and it lives in ./include/linux/hashtable.h, iykyk. Let's get into it πŸŽ€


✨ NAME ✨

hash_add_rcu β€” literally just add an object to a rcu enabled hashtable πŸ¦‹ that's the whole vibe.


🌸 SYNOPSIS 🌸

hash_add_rcu (hashtable , node , key );

no cap, that's it. three things go in, and the hashtable gets a new resident 🫢


πŸ’– ARGUMENTS πŸ’–

  • hashtable β€” the hashtable you're adding to 🏠 the one that's about to get a whole new member.
  • node β€” the struct hlist_node of the object being added πŸ“Ž like, the actual little hook on the object itself, not the object, bestie, the node.
  • key β€” the key of the object being added πŸ”‘ yes queen, the key. that's how it finds its spot.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole hashtable friend group fr fr, go say hi to all of them πŸ’œ


ngl the whole family is listed up there, so if hash_add_rcu isn't quite the vibe you were going for, one of its cousins 100% is 🧚

and that's the page, bestie!! 🌈 from the ./include/linux girlies, dated October 2026 β€” stay slay, stay rcu-safe, and remember: every hashtable deserves its moment πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from