list_for_each_continue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ list_for_each_continue β€” continue iteration over a list πŸ’œ

okay so bestie, we're in the kernel API manual, section 9, and today's main character is list_for_each_continue. no cap, it does exactly what it says on the tin πŸŽ€


✨ SYNOPSIS ✨

list_for_each_continue (pos , head );

that's it. that's the whole vibe. two args, zero drama πŸ¦‹


🌸 ARGUMENTS 🌸

  • pos β€” the struct list_head you're using as your loop cursor. it's literally the little guy pointing at where you're at rn πŸ’…
  • head β€” the head for your list. your list's home base, its main character energy πŸ‘‘

🧚 DESCRIPTION 🧚

so here's the tea β˜• β€” you keep iterating over a list, but you pick up right after your current position. like, you don't restart from the beginning, you just continue the stroll from where you're standing. continuing after the current position, exactly as advertised. ate and left no crumbs ✨

lowkey if you were looking for the "start from scratch" version, that's a different function bestie β€” this one is team continue, not team reset πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group is here, fr fr. all of these live in the kernel file ./include/linux/list.h:


and that's the whole page, bestie 🫢 sign-off time: this lil beauty comes from ./include/linux, dated October 2026, and it's filed under list_for_each_continue(9) β€” go forth and continue your iteration, periodt πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from