evlist__for_...ntry_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… evlist__for_...ntry_reverse(9) β€” bestie's guide to the reverse iterator ✨

okay so this one is a real one: evlist__for_each_entry_reverse from the Kernel API Manual, section 9, and it's literally the reverse-order version of the evsel loop. the way that this macro just goes backwards through your list? iconic. πŸ¦‹


✨ NAME ✨

evlist__for_each_entry_reverse β€” iterate thru all the evsels in reverse order πŸŽ€

like, every single evsel in the evlist, but you're walking it backwards. it's giving main character energy but in reverse. no cap. πŸ”₯


🌸 SYNOPSIS 🌸

evlist__for_each_entry_reverse (evlist , evsel );

yep that's the whole vibe. evlist and evsel, that's it, that's the group chat. πŸ’–


🫢 ARGUMENTS 🫢

  • evlist β€” the evlist instance you wanna iterate. this is the thing you're looping over, bestie. your list. your whole situation. 🌈
  • evsel β€” a struct evsel iterator. this is the lil' variable that holds each entry as you go, one at a time, in reverse. it's the main character of every loop pass. πŸ‘‘

ngl if you forget what evsel is you're gonna have a bad time, so keep it lined up with the macro, fr fr. 😭


πŸ’€ SEE ALSO πŸ’€

the kernel file lives at ./tools/perf/util/evlist.h (yes, that's the one, go look, iykyk πŸ‘€) and it's got the whole family of these macros. bestie, there are so many siblings, and honestly they all slay in their own way:

go read them all, seriously, they ate. πŸ’…

lowkey remember: they're all manpage section 9 (kernel API), so don't go looking in section 1 unless you want to be confused and crying in the terminal. πŸ™ˆ

and that's the page!! πŸŽ€ this one's from the Kernel API Manual, sourced out of ./tools/perf/util, and it's dated October 2026 β€” so like, future vibes, but the manual is right now. mwah. πŸ’œπŸ§šβ­

πŸ“¦ where this page comes from