Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
symbol.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_LLEXT_SYMBOL_H
8
#define ZEPHYR_LLEXT_SYMBOL_H
9
10
#include <
zephyr/sys/iterable_sections.h
>
11
#include <stddef.h>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
30
struct
llext_const_symbol
{
32
const
char
*
const
name
;
33
35
const
void
*
const
addr
;
36
};
37
45
struct
llext_symbol
{
47
char
*
name
;
48
50
void
*
addr
;
51
};
52
53
59
struct
llext_symtable
{
61
size_t
sym_cnt
;
62
64
struct
llext_symbol
*
syms
;
65
};
66
67
76
#define EXPORT_SYMBOL(x) \
77
static const STRUCT_SECTION_ITERABLE(llext_const_symbol, x ## _sym) = { \
78
.name = STRINGIFY(x), .addr = x, \
79
}
80
85
#ifdef __cplusplus
86
}
87
#endif
88
89
90
#endif
/* ZEPHYR_LLEXT_SYMBOL_H */
llext_const_symbol
Constant symbols are unchangeable named memory addresses.
Definition:
symbol.h:30
llext_const_symbol::name
const char *const name
Name of symbol.
Definition:
symbol.h:32
llext_const_symbol::addr
const void *const addr
Address of symbol.
Definition:
symbol.h:35
llext_symbol
Symbols are named memory addresses.
Definition:
symbol.h:45
llext_symbol::name
char * name
Name of symbol.
Definition:
symbol.h:47
llext_symbol::addr
void * addr
Address of symbol.
Definition:
symbol.h:50
llext_symtable
A symbol table.
Definition:
symbol.h:59
llext_symtable::sym_cnt
size_t sym_cnt
Number of symbols in the table.
Definition:
symbol.h:61
llext_symtable::syms
struct llext_symbol * syms
Array of symbols.
Definition:
symbol.h:64
iterable_sections.h
zephyr
llext
symbol.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6