list_for_each_from(9)
โจ 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โ thestruct list_headyouโ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:
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(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)
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
- 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