hash_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 the hlist_node within the struct. yes, exactly that 🎯

πŸ”— SEE ALSO πŸ”—


that's the whole vibe, bestie 🫢 source/version: ./tools/include/linux Β· date: October 2026 Β· hash_for_each(9) out πŸ’…βœ¨

πŸ“¦ where this page comes from