Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
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. | |
Linkable loadable extension loader context.
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.
[in] | ldr | Loader |
[in] | pos | Position to obtain a pointer to |
pointer | into the buffer |
size_t llext_loader::prog_data_size |
Total calculated .data size for relocatable extensions.
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.
[in] | ldr | Loader |
[in] | out | Output location |
[in] | len | Length to copy into the output location |
0 | Success |
-errno | Error reading (any errno) |
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.
[in] | ldr | Loader |
[in] | pos | Position in stream to move loader |
0 | Success |
-errno | Error reading (any errno) |