__evlist__for_each_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __evlist__for_each_entry(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this little baby lives in section 9 and her whole entire job is looping over evsels, no cap.


🌸 NAME 🌸

__evlist__for_each_entry β€” iterate thru all the evsels πŸ¦‹

like literally, that's the vibe. she iterates. thru all the evsels. every single one. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

__evlist__for_each_entry (list , evsel );

yeah that's it. that's the whole thing. lowkey iconic how short it is πŸ’… (and yes, the spacing is exactly like that, don't @ me, I don't make the rules)


πŸ’œ ARGUMENTS πŸ’œ

  • list β€” a list_head instance to iterate 🧚 this is the thing you're walkin' through, bestie. your starting point. your main character list.
  • evsel β€” struct evsel iterator 🌈 this is the one that goes around the loop, picking up each evsel as it goes. she's the traveler. she's the iterator. iykyk.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group fr fr β€” go say hi to all of them πŸ‘‘

ngl if you're reaching for the _safe one, that's the "i'm deleting stuff mid-loop" energy πŸ’€ be careful out there bestie, that's all I'm saying.

aaaand that's the page!! 🫢 shoutout to ./tools/perf/util for being the source/version β€” she's giving October 2026, she's giving kernel file realness, she ate and left no crumbs πŸ“βœ¨ bye bestie, go iterate something beautiful πŸ’–

πŸ“¦ where this page comes from