__evlist__fo...ntry_reverse(9)
πΈ __evlist__for_each_entry_reverse(9) πΈ
okay bestie, so this is a page from the Kernel API Manual, and the star of the show is __evlist__for_each_entry_reverse π
she's a macro, she's iconic, and she's about to walk you through all the evsels β but backwards, because why be normal when you can be reverse π
β¨ NAME β¨
__evlist__for_each_entry_reverse β iterate thru all the evsels in reverse order π¦
like yes, that's literally what she does. no cap.
β¨ SYNOPSIS β¨
__evlist__for_each_entry_reverse (list , evsel );
that's the whole vibe, bestie. two args, no drama π
β¨ ARGUMENTS β¨
okay so here's what you're feeding her:
listβ alist_headinstance to iterate π like, this is the thing you're walking throughevselβ astruct evseliterator π this is your little cursor bestie that moves along the way
both of them, together, slaying. periodt.
β¨ SEE ALSO β¨
the lore lives in the Kernel file ./tools/perf/util/evlist.h π and honestly? there's a whole friend group. go say hi to:
__evlist__for_each_entry(9)evlist__for_each_entry(9)__evlist__for_each_entry_continue(9)evlist__for_each_entry_continue(9)__evlist__for_each_entry_from(9)evlist__for_each_entry_from(9)evlist__for_each_entry_reverse(9)__evlist__for_each_entry_safe(9)evlist__for_each_entry_safe(9)evlist__for_each_cpu(9)
iykyk π«Ά like, that's the whole extended friend group and they're all eating π₯
lowkey a reminder that this page lives in ./tools/perf/util and is dated October 2026 β so when you cite her, cite her right, bestie ππ
and that's the page!! stay hydrated, read your headers, and iterate responsibly β¨π§π
π¦ 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