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

Constant symbols are unchangeable named memory addresses. More...

#include <symbol.h>

Data Fields

union { 
 
   const char *const   name 
 Name of symbol. More...
 
   const uintptr_t   slid 
 Symbol Link Identifier. More...
 
};  
 At build time, we always write to 'name'.
 
const void *const addr
 Address of symbol.
 

Detailed Description

Constant symbols are unchangeable named memory addresses.

Symbols may be named function or global objects that have been exported for linking. These constant symbols are useful in the base image as they may be placed in ROM.

Note
When updating this structure, make sure to also update the 'scripts/build/llext_prepare_exptab.py' build script.

Field Documentation

◆ [union]

union { ... } llext_const_symbol

At build time, we always write to 'name'.

At runtime, which field is used depends on CONFIG_LLEXT_EXPORT_BUILTINS_BY_SLID.

◆ addr

const void* const llext_const_symbol::addr

Address of symbol.

◆ name

const char* const llext_const_symbol::name

Name of symbol.

◆ slid

const uintptr_t llext_const_symbol::slid

Symbol Link Identifier.


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