Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
llext.h File Reference
#include <zephyr/sys/slist.h>
#include <zephyr/llext/elf.h>
#include <zephyr/llext/symbol.h>
#include <zephyr/llext/loader.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  llext
 Linkable loadable extension. More...
 

Enumerations

enum  llext_mem {
  LLEXT_MEM_TEXT , LLEXT_MEM_DATA , LLEXT_MEM_RODATA , LLEXT_MEM_BSS ,
  LLEXT_MEM_COUNT
}
 Enum of memory regions for lookup tables. More...
 

Functions

sys_slist_tllext_list (void)
 List head of loaded extensions.
 
struct llextllext_by_name (const char *name)
 Find an llext by name.
 
int llext_load (struct llext_loader *loader, const char *name, struct llext **ext)
 Load and link an extension.
 
void llext_unload (struct llext *ext)
 Unload an extension.
 
const void *const llext_find_sym (const struct llext_symtable *sym_table, const char *sym_name)
 Find the address for an arbitrary symbol name.
 
int llext_call_fn (struct llext *ext, const char *sym_name)
 Call a function by name.
 
void arch_elf_relocate (elf_rel_t *rel, uintptr_t opaddr, uintptr_t opval)
 Architecture specific function for updating op codes given a relocation.