list_for_eac...try_continue(9)
π
list_for_eac...try_continue(9) β bestie's guide to list_for_each_entry_continue
okay so welcome to the Kernel API Manual, section 9 π (yes the title up top is truncated, that's just how the manpage header rolls β the vibe is intact, i promise). this one is a tiny macro with big "keep going" energy β¨
β¨ NAME β¨
list_for_each_entry_continue β keep iterating over a list of a given type, no cap π
π¦ SYNOPSIS π¦
list_for_each_entry_continue (pos , head , member );
πΈ ARGUMENTS πΈ
posβ thetype *you're using as your loop cursor. that's your main character pointer, the one that walks the list πheadβ the head of your list. the start-of-everything vibe πmemberβ the name of thelist_headinside the struct. like, the little embedded link-up field that makes the whole thing work π§
π DESCRIPTION π
continue iterating over a list of the given type β but starting after where you currently are. it's literally the "and then what happened" macro π«Ά
so if you're already mid-list and you're like "okay bestie, keep going", this is the one. it picks up from your current position and carries on. periodt π
β SEE ALSO β
kernel file ./tools/include/linux/list.h, and honestly the entire list-lore extended universe π:
list_add(9), list_add_tail(9), list_replace(9), list_del_init(9), list_move(9), list_move_tail(9), list_is_first(9), list_is_last(9), list_empty(9), list_empty_careful(9), list_rotate_left(9), list_is_singular(9), list_cut_position(9), list_splice(9), list_splice_tail(9), list_splice_init(9), list_splice_tail_init(9), list_entry(9), list_first_entry(9), list_last_entry(9), list_first_entry_or_null(9), list_last_entry_or_null(9), list_next_entry(9), list_prev_entry(9), list_for_each(9), list_for_each_prev(9), list_for_each_safe(9), list_for_each_prev_safe(9), list_for_each_entry(9), list_for_each_entry_reverse(9), list_prepare_entry(9), list_for_each_entry_continue_reverse(9), list_for_each_entry_from(9), list_for_each_entry_safe(9), list_for_each_entry_safe_continue(9), list_for_each_entry_safe_from(9), list_for_each_entry_safe_reverse(9), list_safe_reset_next(9), hlist_for_each_entry(9), hlist_for_each_entry_continue(9), hlist_for_each_entry_from(9), hlist_for_each_entry_safe(9), list_del_range(9), list_for_each_from(9)
ngl if you're deep in linked-list land, just read the whole family. iykyk π
mwah π that's the page! brought to you from ./tools/include/linux, dated October 2026, and this little macro is filed under list_for_eac...try_continue(9) β stay iterating, bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms