list_private_for_each_entry(9)
πΈ NAME πΈ
list_private_for_each_entry β bestie, it literally iterates over a list of a given type π
β¨ SYNOPSIS β¨
list_private_for_each_entry (pos , head , member );
π ARGUMENTS π
posβ ok so this is the type * you're gonna use as your loop cursor π like, it's the little pointer that walks the walk, iykykheadβ the head for your list π your list's main character, essentiallymemberβ the name of thelist_headwithin the struct π§ you gotta tell it where inside your struct the list bits live, no cap
π SEE ALSO π
Kernel file ./include/linux/list_private.h Private List Primitives(9) β and honestly the whole friend group, they all slay π«Ά:
list_private_entry(9)list_private_first_entry(9)list_private_last_entry(9)list_private_next_entry(9)list_private_next_entry_circular(9)list_private_prev_entry(9)list_private_prev_entry_circular(9)list_private_entry_is_head(9)list_private_for_each_entry_reverse(9)list_private_for_each_entry_continue(9)list_private_for_each_entry_continue_reverse(9)list_private_for_each_entry_from(9)list_private_for_each_entry_from_reverse(9)list_private_for_each_entry_safe(9)list_private_for_each_entry_safe_continue(9)list_private_for_each_entry_safe_from(9)list_private_for_each_entry_safe_reverse(9)list_private_safe_reset_next(9)
ngl bestie the_safevariants and the_reversevariants are right there in the see-also list β go peek at those too, they're giving very much "there's a whole family" π
π ok that's the whole page, you ate that π
Kernel API Manual Β· from ./include/linux Β· dated October 2026 Β· and it's list_private_for_each_entry(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