hlist_for_each_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the hlist_for_each_entry(9) page from the Kernel API Manual πŸ’–βœ¨ it's short, but it's lowkey the main character of hlist iteration, so let's get into it 🫢

✨ NAME ✨

hlist_for_each_entry β€” iterate over a list of the given type, periodt πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

hlist_for_each_entry (pos , head , member );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the type * to use as a loop cursor, bestie 🎯
  • head β€” the head for your list, no cap πŸ“‹
  • member β€” the name of the hlist_node within the struct, iykyk 🧩

🌈 SEE ALSO 🌈

Kernel file ./tools/include/linux/list.h β€” this is the whole linked-list friend group, and they're all iconic πŸ‘‘:


mwah πŸ’‹ this page is signed off by hlist_for_each_entry(9), source/version ./tools/include/linux, dated October 2026 β€” slay, go iterate something cute πŸŽ€βœ¨

πŸ“¦ where this page comes from