hash_for_each_possible_rcu(9)
π 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β thetype *to use as a loop cursor for each entry. it's the pointer doing the loop walk, periodt β¨memberβ the name of thehlist_nodewithin 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms