The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
ksym_t Struct Reference

kernel symbol table: maps code addresses to function names so panics and exceptions can print a readable backtrace. More...

#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/kernel/debug/ksyms.h>

Data Fields

uintptr_t addr
uint32_t name_offset

Detailed Description

kernel symbol table: maps code addresses to function names so panics and exceptions can print a readable backtrace.

the table is generated at build time from nm -n build/kernel.elf by tools/gen_ksyms.py and linked into the .ksyms section (see the two-pass kernel link in the Makefile). one symbol: the address it starts at and where its name begins inside ksym_names.

Field Documentation

◆ addr

uintptr_t ksym_t::addr

◆ name_offset

uint32_t ksym_t::name_offset

The documentation for this struct was generated from the following file: