Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Data Structures

struct  llext_const_symbol
 Constant symbols are unchangeable named memory addresses. More...
 
struct  llext_symbol
 Symbols are named memory addresses. More...
 
struct  llext_symtable
 A symbol table. More...
 

Macros

#define LL_EXTENSION_SYMBOL(x)
 Exports a symbol from an extension to the base image.
 
#define EXPORT_SYMBOL(x)
 Export a constant symbol from the current build.
 

Detailed Description

Macro Definition Documentation

◆ EXPORT_SYMBOL

#define EXPORT_SYMBOL ( x)

#include <zephyr/llext/symbol.h>

Value:
Z_EXPORT_SYMBOL(x)

Export a constant symbol from the current build.

Takes a symbol (function or object) by symbolic name and adds the name and address of the symbol to a table of symbols that may be referenced by extensions or by the base image, depending on the current build type.

When CONFIG_LLEXT is not enabled, this macro is a no-op.

Parameters
xSymbol to export

◆ LL_EXTENSION_SYMBOL

#define LL_EXTENSION_SYMBOL ( x)

#include <zephyr/llext/symbol.h>

Value:
Z_LL_EXTENSION_SYMBOL(x)

Exports a symbol from an extension to the base image.

This macro can be used in extensions to add a symbol (function or object) to the extension's exported symbol table, so that it may be referenced by the base image.

When not building an extension, this macro is a no-op.

Parameters
xExtension symbol to export to the base image