list_private...from_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… list_private_for_each_entry_from_reverse β€” like, the manual page for it (section 9, Kernel API Manual, bestie)

okay so picture this: you're in the kernel, you've got a private list, and you need to walk it backwards starting from wherever you're standing right now. that's it. that's the whole vibe. this is the macro for that. welcome 🫢


✨ NAME ✨

list_private_for_each_entry_from_reverse β€” iterate backwards over list of given type from the current point

like, you go backwards, over a list, of a given type, and you start from the current point. no cap, that's literally the description. πŸ¦‹


🌸 SYNOPSIS 🌸

list_private_for_each_entry_from_reverse (pos , head , member );

(yeah the spacing is a little unhinged, that's just how it's written, leave it alone 😭)


πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the type * to use as a loop cursor. she's your main character pointer, she's the one moving through the list every iteration πŸ’…
  • head β€” the head for your list. the anchor. the home base. the girlboss at the top of the whole thing πŸ‘‘
  • member β€” the name of the list_head within the struct. so like, the name of the field inside your struct that's the list node. you gotta tell her which one it is, she's not a mind reader πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

Iterate backwards over list of given type, continuing from current position.

that's the whole tea. you're mid-list or wherever, and instead of restarting from the top like a coward, you keep going in the reverse direction from exactly where you are. it's giving "I know where I'm going and I'm not backtracking" energy. slay ✨

fr fr, it's the from version β€” so pos isn't reset for you, you're continuing from the current position. don't come for me if you expected a fresh start, that's a different macro's job πŸ’€

🌈 SEE ALSO 🌈


πŸ’– that's the whole page bestie, go iterate responsibly. she lives in ./include/linux, she's dated October 2026, and she's part of the Kernel API Manual (section 9, iykyk). mwah. πŸŽ€πŸ’‹
πŸ“¦ where this page comes from