list_for_ea...ry_safe_from(9)
π list_for_ea...ry_safe_from(9) π
okay so this page is from the Kernel API Manual, and the actual function itβs hyping is list_for_each_entry_safe_from. the title is doing that truncated list_for_ea...ry_safe_from(9) thing, but we move. this is the bestie-approved breakdown, no cap. π«Ά
β¨ NAME β¨
list_for_each_entry_safe_from β iterate over list from current point, safe against removal. like, youβre looping through the list from where youβre currently at, and the whole thing is safe against removal of the list entry. iconic behavior, honestly. π
π SYNOPSIS π
the whole signature, exactly as written, spaces and all:
list_for_each_entry_safe_from (pos , n , head , member );
π¦ ARGUMENTS π¦
posβ thetype *to use as a loop cursor. this is your main-character cursor, bestie. πnβ anothertype *to use as temporary storage. your little temporary-storage sidekick. πheadβ the head for your list. the literal head of the operation. πmemberβ the name of thelist_headwithin the struct. yep, thatβs the field name. β¨
πΈ DESCRIPTION πΈ
okay so hereβs the tea, fr fr: iterate over list of given type from current point, safe against removal of list entry. you start at the current point, you loop over the list of the given type, and itβs safe against removal of the list entry. thatβs the whole flex. no cap. π β¨
π SEE ALSO π
okay so the Kernel file ./tools/include/linux/list.h is in the SEE ALSO mix, and the whole squad is lowkey iconic:
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_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)
thatβs the whole page, bestie! π itβs from the Kernel API Manual, source/version line energy: ./tools/include/linux, dated October 2026, and the title is list_for_ea...ry_safe_from(9). periodt. π«Άβ¨
π¦ 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