The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
ksyms.h File Reference
#include "common/stdint.h"

Go to the source code of this file.

Data Structures

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

Functions

const char * ksym_lookup (uintptr_t addr, uintptr_t *offset)
 find the function containing an address.
bool ksym_is_kernel_text (uintptr_t addr)
 check whether an address lies inside the kernel's .text section.

Variables

const uint32_t ksym_count
const ksym_t ksym_table []
const char ksym_names []

Function Documentation

◆ ksym_lookup()

const char * ksym_lookup ( uintptr_t addr,
uintptr_t * offset )

find the function containing an address.

Parameters
addra code address.
offsetreceives addr minus the function start; may be NULL.
Returns
the function name, or NULL if addr is not inside kernel code.

◆ ksym_is_kernel_text()

bool ksym_is_kernel_text ( uintptr_t addr)

check whether an address lies inside the kernel's .text section.

Parameters
addrthe address to check.
Returns
true if addr is kernel code.

Variable Documentation

◆ ksym_count

const uint32_t ksym_count
extern

◆ ksym_table

const ksym_t ksym_table[]
extern

◆ ksym_names

const char ksym_names[]
extern