evlist__for_each_entry_safe(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual page for evlist__for_each_entry_safe β and yes it's literally the safe way to iterate thru all the evsels. no cap. π¦
β¨ SYNOPSIS β¨
evlist__for_each_entry_safe (evlist , tmp , evsel );
π ARGUMENTS π
evlistβ the evlist instance you're iterating over, bestie. that's the whole vibe. πtmpβ astruct evseltemp iterator. it's giving "hold my spot" energy. π«Άevselβ astruct evseliterator. main character of each loop moment. π
πΈ SEE ALSO πΈ
lowkey obsessed with the whole family, so here's the full squad from the Kernel file ./tools/perf/util/evlist.h:
__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_reverse(9)__evlist__for_each_entry_safe(9)evlist__for_each_cpu(9)
and that's the whole page, bestie π«Ά β sourced from ./tools/perf/util, dated October 2026, and yes the manual section is evlist__for_each_entry_safe(9). periodt. π
π¦ 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