elf_symtab__for_each_symbol(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

elf_symtab__for_each_symbol β€” bestie, this one literally just iterates thru all the symbols πŸ’«

So real talk: this is a macro (iykyk, "9" in the manual name) from the Kernel API Manual, and its whole entire personality is looping over every symbol in an ELF symtab. That's it, that's the vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

elf_symtab__for_each_symbol (syms , nr_syms , idx , sym );

Not me copy-pasting the spacing exactly β€” yes, the spaces before those commas are canon, don't @ me πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

Okay so here's who's invited to the function call:

  • syms β€” the struct elf_symtab instance you're iterating over. This is the main character of the whole operation 🫢
  • nr_syms β€” the manpage genuinely says -- undescribed -- and honestly? Same. It's giving mystery. It's giving "we don't know her." No cap, there's no description provided here, so I'm not gonna invent one πŸ™ˆ
  • idx β€” a uint32_t idx. That's the index, bestie, keeping track of where you're at πŸ”₯
  • sym β€” the GElf_Sym iterator. This is your little cursor that holds the current symbol as you go 🌈

🧚 SEE ALSO 🧚

Lowkey the friend group here is stacked, it's the whole ./tools/perf/util/symbol-elf.c kernel file clique:

Periodt. Go read them, they're all iconic in their own way πŸ‘‘


πŸ’œ SIGN-OFF πŸ’œ

That's the whole page, bestie β€” stay slay, keep iterating, and don't forget where this came from: ./tools/perf/util, dated October 2026, for elf_symtab__for_each_symbol(9). Mwah! πŸ“βœ¨

πŸ“¦ where this page comes from