die_get_typename_from_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're opening the Kernel API Manual for die_get_typename_from_type(9) β€” yes, the name is giving "why are there so many underscores," but we're gonna understand it and slay βœ¨πŸ’…

🌸 NAME 🌸

die_get_typename_from_type β€” Get the name of given type DIE πŸŽ€

✨ SYNOPSIS ✨

int die_get_typename_from_type (Dwarf_Die *type_die , struct strbuf *buf
       );

🫢 ARGUMENTS 🫢

  • type_die β€” a type DIE 🌈
  • buf β€” a strbuf for result type name πŸ“

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: it gets the name of type_die and stores it in buf πŸ‘‘ Return 0 if succeeded, and return -ENOENT if failed to find type name. That's the whole mood.

Note that the result will store the typedef name if possible β€” and if the type is a function pointer, it stores "*(function_type)" πŸ’€βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./tools/perf/util/dwarf-aux.c β€” plus literally all of these besties: cu_find_realpath(9), cu_get_comp_dir(9), cu_find_lineinfo(9), cu_walk_functions_at(9), die_get_linkage_name(9), die_compare_name(9), die_match_name(9), die_get_call_lineno(9), die_get_type(9), die_get_real_type(9), die_get_pointer_type(9), die_is_signed_type(9), die_is_func_def(9), die_entrypc(9), die_is_func_instance(9), die_get_data_member_location(9), die_get_call_file(9), die_get_decl_file(9), die_find_child(9), die_find_tailfunc(9), die_find_realfunc(9), die_find_top_inlinefunc(9), die_find_inlinefunc(9), die_find_func_rettype(9), die_walk_instances(9), die_walk_lines(9), die_find_variable_at(9), die_find_member(9), die_get_typename(9), die_get_varname(9), die_get_var_innermost_scope(9), die_get_var_range(9), is_breg_access_indirect(9), die_find_variable_by_reg(9), die_find_variable_by_addr(9), die_collect_vars(9), die_collect_global_vars(9), die_get_cfa(9), die_get_scopes(9), die_get_member_type(9), die_deref_ptr_type(9) 🫢


xoxo bestie, source/version is ./tools/perf/util, dated October 2026, and this page is die_get_typename_from_type(9). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from