hash_for_each(9)
πΈ NAME πΈ
hash_for_each β iterate over a hashtable π
okay so this is hash_for_each(9), straight from the Kernel API Manual, and it's literally the little loop bestie for walking a hashtable. slay.
β¨ SYNOPSIS β¨
hash_for_each (name , bkt , obj , member );
π ARGUMENTS π
nameβ the hashtable you're iterating over. that's the main character πbktβ an integer to use as the bucket loop cursor πͺ£β¨objβ the type * to use as a loop cursor for each entry πmemberβ the name of thehlist_nodewithin the struct. yes, exactly that π―
π SEE ALSO π
- Kernel file
./tools/include/linux/hashtable.h hash_init(9)hash_add(9)hash_hashed(9)hash_empty(9)hash_del(9)hash_for_each_safe(9)hash_for_each_possible(9)hash_for_each_possible_safe(9)
that's the whole vibe, bestie π«Ά source/version: ./tools/include/linux Β· date: October 2026 Β· hash_for_each(9) out π
β¨
π¦ 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