list_for_each_from(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ NAME โœจ

Okay so list_for_each_from is literally the iconic โ€œiterate over a list from one of its nodesโ€ move โ€” youโ€™re walking a list, but you get to start at a specific node instead of the very top. Bestie, this is the Kernel API Manual page for list_for_each_from(9), and itโ€™s gonna make sense, fr fr. ๐Ÿฆ‹

๐ŸŒธ SYNOPSIS ๐ŸŒธ

list_for_each_from (pos , head );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • pos โ€” the struct list_head youโ€™re using as the loop cursor, and itโ€™s the spot where you start. Thatโ€™s the whole โ€œfromโ€ vibe. โœจ
  • head โ€” the head for your list. Periodt. ๐Ÿ’…

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

Kernel file ./tools/include/linux/list.h โ€” yes bestie, thatโ€™s the file. And hereโ€™s the whole list-helper friend group, all together:


Okay thatโ€™s the page, bestie โ€” source/version is ./tools/include/linux, date is October 2026, and thatโ€™s a wrap. Go slay those list iterations, mwah ๐Ÿ’–

๐Ÿ“ฆ where this page comes from