MOS Source Code
Loading...
Searching...
No Matches
kallsyms.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include <
mos/types.h
>
6
7
typedef
struct
8
{
9
ptr_t
address
;
10
const
char
*
name
;
11
}
kallsyms_t
;
12
13
extern
const
kallsyms_t
mos_kallsyms
[];
14
15
#define mos_caller() (kallsyms_get_symbol_name((ptr_t) __builtin_return_address(0)))
16
17
const
kallsyms_t
*
kallsyms_get_symbol
(
ptr_t
addr);
18
const
char
*
kallsyms_get_symbol_name
(
ptr_t
addr);
kallsyms_get_symbol
const kallsyms_t * kallsyms_get_symbol(ptr_t addr)
Definition
kallsyms.c:5
mos_kallsyms
const kallsyms_t mos_kallsyms[]
Definition
mos_limine.kallsyms.1.c:5
kallsyms_get_symbol_name
const char * kallsyms_get_symbol_name(ptr_t addr)
Definition
kallsyms.c:22
kallsyms_t
Definition
kallsyms.h:8
kallsyms_t::address
ptr_t address
Definition
kallsyms.h:9
kallsyms_t::name
const char * name
Definition
kallsyms.h:10
types.h
ptr_t
unsigned long ptr_t
Definition
types.h:25
kernel
include
private
mos
misc
kallsyms.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0