hash_for_each_possible_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 hash_for_each_possible_safe(9) 🌸

okay so bestie, this is a page straight out of the Kernel API Manual, and it's literally about iterating over all possible objects hashing to the same bucket, safe against removals. no cap, that's the whole vibe. πŸ’…


✨ NAME ✨

hash_for_each_possible_safe β€” iterate over all possible objects hashing to the same bucket safe against removals 🫢


πŸŽ€ SYNOPSIS πŸŽ€

hash_for_each_possible_safe (name , obj , tmp , member , key );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • name β€” the hashtable to iterate. like, the whole bucket situation. πŸͺ£
  • obj β€” the type * to use as a loop cursor for each entry. main character loop energy fr fr. πŸŒ€
  • tmp β€” a struct used for temporary storage. it's giving helpful little sidekick. πŸŽ€
  • member β€” the name of the hlist_node within the struct. iykyk. πŸ¦‹
  • key β€” the key of the objects to iterate over. the password to the bucket party, lowkey. πŸ”‘

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./tools/include/linux/hashtable.h β€” that's the source file, bestie. and here's the whole squad:


mwah πŸ’‹ β€” source/version ./tools/include/linux, dated October 2026, and this iconic page is hash_for_each_possible_safe(9). bye bestie, go slay those buckets 🫢✨

πŸ“¦ where this page comes from