list_for_each_entry_from(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

list_for_each_entry_from β€” bestie, this is the one that iterates over a list of a given type from the current point ✨ not from the start, from wherever you already are, and that's the whole vibe 🫢


✨ SYNOPSIS ✨

list_for_each_entry_from (pos , head , member );

That's it, that's the whole call, no cap πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the type * to use as a loop cursor. yes it's your little pointer bestie that walks the list for you πŸ‘‘
  • head β€” the head for your list. the main character of the whole structure fr fr 🌈
  • member β€” the name of the list_head within the struct. gotta tell it which field is the list glue 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you've got a list of a given type, you're already standing somewhere in the middle of it, and you do not want to start over from the beginning like some kind of rookie 😭

list_for_each_entry_from iterates over that list of given type, continuing from current position. that's the whole thing, that's the slay πŸ’…

lowkey the important part is continuing β€” it picks up right where you are instead of rewinding. iykyk πŸ¦‹

🌸 SEE ALSO 🌸

Kernel file ./tools/include/linux/list.h β€” and honestly the whole friend group is here, go say hi πŸ’–


and that's the page bestie!! πŸ’œ this one dropped in October 2026, lives under the source path ./tools/include/linux, and it's part of the Kernel API Manual β€” the manual page is literally called list_for_each_entry_from(9) in case you forgot already πŸ™ˆ go forth and iterate from wherever you're standing, periodt πŸŽ€πŸ”₯

πŸ“¦ where this page comes from