list_private...safe_reverse(9)
πΈ NAME πΈ
okay so bestie, this is list_private_for_each_entry_safe_reverse from the Kernel API Manual β and it does exactly what the name says: iterate backwards over list safe against removal. It's the backwards-walking, removal-safe list girlie π
β¨
β¨ SYNOPSIS β¨
list_private_for_each_entry_safe_reverse (pos , n , head , member );
yes, that spacing is canon β copy it exactly, no cap π«Ά
π ARGUMENTS π
posβ thetype *to use as a loop cursor. this is your main-character pointer, always out here pointing at the current entry πnβ anothertype *to use as temporary storage. literally just extra typed pointer storage, your little backup buddy πheadβ the head for your list. the starting point, the queen of the linked list πmemberβ the name of thelist_headwithin the struct. iykyk, it's the field name that hooks your struct into the list π₯
π DESCRIPTION π
Iterate backwards over list of given type, safe against removal of list entry. it's giving backwards traversal with a safety net β the walk doesn't get wrecked just because a list entry gets removed ππ
π¦ SEE ALSO π¦
Kernel file ./include/linux/list_private.h, plus the Private List Primitives(9) crew β all of these icons, fr fr:
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(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_safe_reset_next(9)
and that's the whole vibe π shoutout to ./include/linux, dated October 2026, filed under list_private...safe_reverse(9) β bye bestie, go walk that list backwards safely π§π
π¦ 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