elf_symtab__for_each_symbol(9)
β¨ 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β thestruct elf_symtabinstance 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β auint32_t idx. That's the index, bestie, keeping track of where you're at π₯symβ theGElf_Symiterator. 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:
ref_reloc_sym_not_found(9)ref_reloc(9)kcore_copy(9)populate_sdt_note(9)construct_sdt_notes_list(9)get_sdt_note_list(9)cleanup_sdt_note_list(9)sdt_notes__get_count(9)
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
- 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