list_for_eac...inue_reverse(9)
π list_for_eac...inue_reverse(9)
okay bestie, welcome to the Kernel API Manual π this one's a macro with a long name and a whole lot of attitude, and honestly? she's iconic for it.
β¨ NAME β¨
list_for_each_entry_continue_reverse β iterate backwards from the given point π¦
like, you know where you are in the list? cool. now go backwards from there. no cap.
πΈ SYNOPSIS πΈ
list_for_each_entry_continue_reverse (pos , head , member );
that's it, that's the whole vibe check β¨ (yes, the spaces are really in there, don't come for me)
π ARGUMENTS π
posβ thetype *to use as a loop cursor. she's the main character of this loop, the little pointer that walks the runway π«Άheadβ the head for your list. every list has one, this is yours πmemberβ the name of thelist_headwithin the struct. you gotta tell the macro where the list-ness lives inside your struct, iykyk π
π DESCRIPTION π
so the whole thing: start to iterate over a list of the given type backwards, continuing after the current position π
that's the whole bit, and she ate. you're already somewhere in the list, and this macro picks it up from there and strolls in the other direction β lowkey the reverse-birthday-party of list_for_each_entry_continue, fr fr π
π₯ SEE ALSO π₯
π§ the whole list family reunion, plus where to find her: kernel file ./tools/include/linux/list.h
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_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)
bestie that's so many siblings, but every single one of them is on the guest list, no cuts π
πΈ alright gorgeous, that's the page. this one's brought to you straight out of ./tools/include/linux, stamped October 2026 β go forth and iterate backwards, you absolute legend π
β¨π
π¦ 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