-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llext: explicitly define loader storage types #81016
Changes from 1 commit
9249e32
b3cfc01
8b75a7f
6dd7974
f4f67eb
e55e2d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,17 @@ Loading an extension | |
An extension may be loaded using any implementation of a :c:struct:`llext_loader` | ||
which has a set of function pointers that provide the necessary functionality | ||
to read the ELF data. A loader also provides some minimal context (memory) | ||
needed by the :c:func:`llext_load` function. An implementation over a buffer | ||
containing an ELF in addressable memory in memory is available as | ||
:c:struct:`llext_buf_loader`. | ||
needed by the :c:func:`llext_load` function. Several loaders are already provided: | ||
|
||
* An implementation over a buffer containing an ELF in addressable memory in | ||
memory is available as :c:struct:`llext_buf_loader`. To use this kind of | ||
loader, it is helpful to use one of the :c:macro:`LLEXT_TEMPORARY_BUF_LOADER`, | ||
:c:macro:`LLEXT_PERSISTENT_BUF_LOADER`, or :c:macro:`LLEXT_WRITABLE_BUF_LOADER` | ||
macros to tell LLEXT the appropriate type of memory buffer. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we mention the wrappers directly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so. This is introducing LLEXT, so the first thing you need to know is how to start tinkering with it... IMHO they are even more useful than the struct reference 🙂 |
||
|
||
* An implementation that reads data from a file in the filesystem is available | ||
as the :c:struct:`llext_fs_loader`. The path to the file must be provided | ||
when creating the loader with the :c:macro:`LLEXT_FS_LOADER` macro. | ||
|
||
The extensions are loaded with a call to the :c:func:`llext_load` function, | ||
passing in the extension name and the configured loader. Once that completes | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some typo here, did you mean "if?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reused the text without looking, thanks for spotting! 👍