die_collect_global_vars(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

die_collect_global_vars(9) πŸ’–

okay so this page is from the Kernel API Manual, and it’s giving β€œcollect every global variable and save the receipts” energy. bestie, let’s get into it ✨


🌸 NAME 🌸

die_collect_global_vars β€” save all global variables. that’s the whole assignment, no cap πŸ’…


✨ SYNOPSIS ✨

void die_collect_global_vars (Dwarf_Die *cu_die , struct die_var_type
**var_types );

πŸ’… ARGUMENTS πŸ’…

  • cu_die β€” a CU DIE 🫢
  • var_types β€” a pointer to save the resulting list. slay, that’s where the loot goes πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

Save all global variables in the cu_die and save them to var_types. The var_types is a singly-linked list containing type and location info. Actual type can be retrieved using dwarf_offdie with die_off later. iykyk πŸ”₯

Callers should free var_types. yes bestie, that’s your job β€” don’t leave it hanging, periodt πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./tools/perf/util/dwarf-aux.c β€” that’s the source file, and these are the linked fam πŸ‘‘πŸ’œ


source/version vibe: ./tools/perf/util Β· dated October 2026 Β· that’s the footer, bestie, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from