hash_for_each_possible_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hash_for_each_possible_rcu(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this page is literally hash_for_each_possible_rcu(9), and it's giving iterator with same-bucket, rcu enabled hashtable energy. πŸ’…


πŸ¦‹ NAME πŸ¦‹

hash_for_each_possible_rcu β€” iterate over all possible objects hashing to the same bucket in an rcu enabled hashtable. no cap, that's the whole vibe check: all possible objects, same bucket, rcu enabled hashtable. ✨

πŸŽ€ SYNOPSIS πŸŽ€

hash_for_each_possible_rcu (name , obj , member , key , cond... );

🌸 ARGUMENTS 🌸

  • name β€” the hashtable to iterate. your bucket-list main character 🫢
  • obj β€” the type * to use as a loop cursor for each entry. it's the pointer doing the loop walk, periodt ✨
  • member β€” the name of the hlist_node within the struct. yep, that exact member name πŸ’…
  • key β€” the key of the objects to iterate over. the matching key, bestie πŸ”‘
  • cond β€” variable arguments. literally variable arguments; that's the description, iykyk 🫢

🌈 SEE ALSO 🌈

Kernel file ./include/linux/hashtable.h is the home base. also go say hi to hash_init(9), hash_add(9), hash_add_rcu(9), hash_hashed(9), hash_empty(9), hash_del(9), hash_del_rcu(9), hash_for_each(9), hash_for_each_rcu(9), hash_for_each_safe(9), hash_for_each_possible(9), hash_for_each_possible_rcu_notrace(9), and hash_for_each_possible_safe(9). all iconic, all worth a look πŸ”₯


xoxo, signing off from source/version ./include/linux, dated October 2026, and this page is hash_for_each_possible_rcu(9). slay πŸ’–

πŸ“¦ where this page comes from