rht_for_each_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, you're on the rht_for_each_rcu(9) page in the Kernel API Manual, and the whole point is literally: iterate over rcu hash chain. no cap. πŸ’…


✨ SYNOPSIS ✨

rht_for_each_rcu (pos , tbl , hash );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pos β€” the struct rhash_head to use as a loop cursor. that's your main character pointer fr fr.
  • tbl β€” the struct bucket_table. the table you're cruising through, lowkey.
  • hash β€” the hash value / bucket index. the lil address vibe that tells you which chain to hit.

πŸ”₯ DESCRIPTION πŸ”₯

This hash chain list-traversal primitive may safely run concurrently with the _rcu mutation primitives such as rhashtable_insert as long as the traversal is guarded by rcu_read_lock.

bestie, read that again: concurrent-safe is conditional. the rcu_read_lock guard is not optional, periodt. πŸ’€

🌈 SEE ALSO 🌈

The kernel file ./include/linux/rhashtable.h is in the group chat, along with:

mwah πŸ’‹ β€” this page's source/version footer says ./include/linux, dated October 2026, and it's still the rht_for_each_rcu(9) page. 🫢

πŸ“¦ where this page comes from