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

Linkable loadable extension loader context. More...

#include <loader.h>

Data Fields

int(* read )(struct llext_loader *ldr, void *out, size_t len)
 Read (copy) from the loader.
 
int(* seek )(struct llext_loader *s, size_t pos)
 Seek to a new absolute location.
 

Detailed Description

Linkable loadable extension loader context.

Field Documentation

◆ read

int(* llext_loader::read) (struct llext_loader *ldr, void *out, size_t len)

Read (copy) from the loader.

Copies len bytes into buf from the current position of the loader.

Parameters
[in]ldrLoader
[in]outOutput location
[in]lenLength to copy into the output location
Return values
0Success
-errnoError reading (any errno)

◆ seek

int(* llext_loader::seek) (struct llext_loader *s, size_t pos)

Seek to a new absolute location.

Changes the location of the loader position to a new absolute given position.

Parameters
[in]ldrLoader
[in]posPosition in stream to move loader
Return values
0Success
-errnoError reading (any errno)

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