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

Data Structures

struct  llext_buf_loader
 Implementation of llext_loader that reads from a memory buffer. More...
 
struct  llext_fs_loader
 Implementation of llext_loader that reads from a filesystem. More...
 
struct  llext_loader
 Linkable loadable extension loader context. More...
 

Macros

#define LLEXT_BUF_LOADER(_buf, _buf_len)
 Initializer for an llext_buf_loader structure.
 
#define LLEXT_FS_LOADER(_filename)
 Initializer for an llext_fs_loader structure.
 

Detailed Description

Macro Definition Documentation

◆ LLEXT_BUF_LOADER

#define LLEXT_BUF_LOADER ( _buf,
_buf_len )

#include <zephyr/llext/buf_loader.h>

Value:
{ \
.loader = \
{ \
.prepare = NULL, \
.read = llext_buf_read, \
.seek = llext_buf_seek, \
.peek = llext_buf_peek, \
.finalize = NULL, \
}, \
.buf = (_buf), \
.len = (_buf_len), \
.pos = 0, \
}

Initializer for an llext_buf_loader structure.

Parameters
_bufBuffer containing the ELF binary
_buf_lenBuffer length in bytes

◆ LLEXT_FS_LOADER

#define LLEXT_FS_LOADER ( _filename)

#include <zephyr/llext/fs_loader.h>

Value:
{ \
.loader = \
{ \
.prepare = llext_fs_prepare, \
.read = llext_fs_read, \
.seek = llext_fs_seek, \
.peek = NULL, \
.finalize = llext_fs_finalize, \
}, \
.is_open = false, \
.name = (_filename), \
}

Initializer for an llext_fs_loader structure.

Parameters
_filenameAbsolute path to the extension file.