File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,17 @@ Loading an extension
1111An extension may be loaded using any implementation of a :c:struct: `llext_loader `
1212which has a set of function pointers that provide the necessary functionality
1313to read the ELF data. A loader also provides some minimal context (memory)
14- needed by the :c:func: `llext_load ` function. An implementation over a buffer
15- containing an ELF in addressable memory in memory is available as
16- :c:struct: `llext_buf_loader `.
14+ needed by the :c:func: `llext_load ` function. Several loaders are already provided:
15+
16+ * An implementation over a buffer containing an ELF in addressable memory in
17+ memory is available as :c:struct: `llext_buf_loader `. To use this kind of
18+ loader, it is helpful to use one of the :c:macro: `LLEXT_TEMPORARY_BUF_LOADER `,
19+ :c:macro: `LLEXT_PERSISTENT_BUF_LOADER `, or :c:macro: `LLEXT_WRITABLE_BUF_LOADER `
20+ macros to tell LLEXT the appropriate type of memory buffer.
21+
22+ * An implementation that reads data from a file in the filesystem is available
23+ as the :c:struct: `llext_fs_loader `. The path to the file must be provided
24+ when creating the loader with the :c:macro: `LLEXT_FS_LOADER ` macro.
1725
1826The extensions are loaded with a call to the :c:func: `llext_load ` function,
1927passing in the extension name and the configured loader. Once that completes
You can’t perform that action at this time.
0 commit comments