list_for_eac...inue_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the type * 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 the list_head within 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

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