list_for_each_entry_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ list_for_each_entry_reverse(9) ✨

okay so bestie, welcome to the Kernel API Manual, page list_for_each_entry_reverse(9). this one's a lil macro with big main character energy πŸ’…


🌸 NAME 🌸

list_for_each_entry_reverse β€” iterate backwards over list of given type.

like, you're going through your list but in reverse, bestie. back it up, back it up πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

list_for_each_entry_reverse (pos , head , member );

that's the whole vibe. three things in, and the macro does the rest ✨


πŸ’– ARGUMENTS πŸ’–

  • pos β€” the type * to use as a loop cursor. it's your lil main character pointer that walks the loop for you 🫢
  • head β€” the head for your list. the starting point, the home base, the head of the whole operation πŸ‘‘
  • member β€” the name of the list_head within the struct. like, that's the field inside your struct that's doing the linking 🧚

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./tools/include/linux/list.h β€” and honestly the whole friend group shows up here, no cap:

like, that's the entire group chat right there β€” iconic πŸ’€


that's the page, bestie!! πŸ“ remember: ./tools/include/linux, October 2026, and the whole thing is literally called list_for_each_entry_reverse(9). slay, go iterate backwards πŸ’œπŸ¦‹

πŸ“¦ where this page comes from