dwarf_read_addr(9)
πΈ NAME πΈ
okay so this is dwarf_read_addr(9) from the Kernel API Manual, and it is literally here to read dwarf data π
dwarf_read_addr β read dwarf data β¨
β¨ SYNOPSIS β¨
int dwarf_read_addr (unsigned long *src , unsigned long *dst );
π ARGUMENTS π
srcβ the source address of the data π like, that's where the data is coming from, bestie.dstβ the destination address to store the data to π«Ά that's where it's going.
π¦ DESCRIPTION π¦
okay so the vibe is: read n bytes from src, where n is literally the size of an address on the native machine π no cap.
we return the number of bytes read, and it should always be n. like, always always. that's the whole point bestie π
also we have to be careful when reading from src and writing to dst, because they can be arbitrarily aligned π this is the part where you don't just assume everything is cute and lined up perfectly.
and yes β return n, the number of bytes read. periodt. π¦
π SEE ALSO π
Kernel file ./arch/sh/kernel/dwarf.c β and the whole squad is here, go say hi:
dwarf_frame_alloc_reg(9)dwarf_frame_reg(9)dwarf_read_uleb128(9)dwarf_read_leb128(9)dwarf_read_encoded_value(9)dwarf_entry_len(9)dwarf_lookup_cie(9)dwarf_lookup_fde(9)dwarf_cfa_execute_insns(9)dwarf_free_frame(9)dwarf_unwind_stack(9)dwarf_parse_section(9)module_dwarf_cleanup(9)dwarf_unwinder_init(9)
xoxo, your kernel bestie π this page lives at ./arch/sh/kernel, dated October 2026, and it's literally dwarf_read_addr(9) πβ¨
π¦ 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