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

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 *ldr, size_t pos)
 Seek to a new absolute location.
 
void *(* peek )(struct llext_loader *ldr, size_t pos)
 Peek at an absolute location.
 
size_t prog_data_size
 Total calculated .data size for relocatable extensions.
 

Detailed Description

Linkable loadable extension loader context.

Field Documentation

◆ peek

void *(* llext_loader::peek) (struct llext_loader *ldr, size_t pos)

Peek at an absolute location.

Return a pointer to the buffer at specified offset.

Parameters
[in]ldrLoader
[in]posPosition to obtain a pointer to
Return values
pointerinto the buffer

◆ prog_data_size

size_t llext_loader::prog_data_size

Total calculated .data size for relocatable extensions.

◆ 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 *ldr, 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: