Home
last modified time | relevance | path

Searched refs:llext_loader (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/include/zephyr/llext/
Dloader.h42 struct llext_loader { struct
50 int (*prepare)(struct llext_loader *ldr); argument
64 int (*read)(struct llext_loader *ldr, void *out, size_t len); argument
77 int (*seek)(struct llext_loader *ldr, size_t pos); argument
89 void *(*peek)(struct llext_loader *ldr, size_t pos); argument
96 void (*finalize)(struct llext_loader *ldr); argument
106 static inline int llext_prepare(struct llext_loader *l) in llext_prepare() argument
115 static inline int llext_read(struct llext_loader *l, void *buf, size_t len) in llext_read()
120 static inline int llext_seek(struct llext_loader *l, size_t pos) in llext_seek()
125 static inline void *llext_peek(struct llext_loader *l, size_t pos) in llext_peek()
[all …]
Dfs_loader.h30 struct llext_loader loader;
40 int llext_fs_prepare(struct llext_loader *ldr);
41 int llext_fs_read(struct llext_loader *ldr, void *buf, size_t len);
42 int llext_fs_seek(struct llext_loader *ldr, size_t pos);
43 void llext_fs_finalize(struct llext_loader *ldr);
Dbuf_loader.h29 struct llext_loader loader;
39 int llext_buf_read(struct llext_loader *ldr, void *buf, size_t len);
40 int llext_buf_seek(struct llext_loader *ldr, size_t pos);
41 void *llext_buf_peek(struct llext_loader *ldr, size_t pos);
Dllext.h65 struct llext_loader;
204 int llext_load(struct llext_loader *loader, const char *name, struct llext **ext,
355 ssize_t llext_find_section(struct llext_loader *loader, const char *search_name);
370 int llext_get_section_header(struct llext_loader *loader, struct llext *ext,
383 void arch_elf_relocate_local(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
397 void arch_elf_relocate_global(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
Dllext_internal.h21 struct llext_loader;
24 const void *llext_loaded_sect_ptr(struct llext_loader *ldr, struct llext *ext, unsigned int sh_ndx);
/Zephyr-latest/subsys/llext/
Dllext_priv.h22 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext);
23 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext,
53 int do_llext_load(struct llext_loader *ldr, struct llext *ext,
56 static inline const char *llext_string(struct llext_loader *ldr, struct llext *ext, in llext_string()
66 int llext_link(struct llext_loader *ldr, struct llext *ext,
Dfs_loader.c15 int llext_fs_prepare(struct llext_loader *l) in llext_fs_prepare()
32 int llext_fs_read(struct llext_loader *l, void *buf, size_t len) in llext_fs_read()
46 int llext_fs_seek(struct llext_loader *l, size_t pos) in llext_fs_seek()
57 void llext_fs_finalize(struct llext_loader *l) in llext_fs_finalize()
Dbuf_loader.c12 int llext_buf_read(struct llext_loader *l, void *buf, size_t len) in llext_buf_read()
24 int llext_buf_seek(struct llext_loader *l, size_t pos) in llext_buf_seek()
33 void *llext_buf_peek(struct llext_loader *l, size_t pos) in llext_buf_peek()
Dllext_load.c42 const void *llext_loaded_sect_ptr(struct llext_loader *ldr, struct llext *ext, unsigned int sh_ndx) in llext_loaded_sect_ptr()
57 static int llext_load_elf_data(struct llext_loader *ldr, struct llext *ext) in llext_load_elf_data()
152 static int llext_find_tables(struct llext_loader *ldr, struct llext *ext) in llext_find_tables()
213 static int llext_map_sections(struct llext_loader *ldr, struct llext *ext, in llext_map_sections()
452 static int llext_count_export_syms(struct llext_loader *ldr, struct llext *ext) in llext_count_export_syms()
502 static int llext_allocate_symtab(struct llext_loader *ldr, struct llext *ext) in llext_allocate_symtab()
517 static int llext_export_symbols(struct llext_loader *ldr, struct llext *ext) in llext_export_symbols()
547 static int llext_copy_symbols(struct llext_loader *ldr, struct llext *ext, in llext_copy_symbols()
629 int do_llext_load(struct llext_loader *ldr, struct llext *ext, in do_llext_load()
Dllext_mem.c61 static int llext_copy_section(struct llext_loader *ldr, struct llext *ext, in llext_copy_section()
146 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext) in llext_copy_strings()
157 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext, in llext_copy_regions()
Dllext_link.c35 __weak void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, in arch_elf_relocate_local()
41 __weak void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, in arch_elf_relocate_global()
51 static size_t llext_file_offset(struct llext_loader *ldr, size_t offset) in llext_file_offset()
145 static void llext_link_plt(struct llext_loader *ldr, struct llext *ext, elf_shdr_t *shdr, in llext_link_plt()
272 int llext_link(struct llext_loader *ldr, struct llext *ext, const struct llext_load_param *ldr_parm) in llext_link()
Dllext.c26 int llext_get_section_header(struct llext_loader *ldr, struct llext *ext, const char *search_name, in llext_get_section_header()
52 ssize_t llext_find_section(struct llext_loader *ldr, const char *search_name) in llext_find_section()
163 int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext, in llext_load()
Dshell.c145 struct llext_loader *ldr = &buf_loader.loader; in cmd_llext_load_hex()
211 struct llext_loader *ldr = &fs_loader.loader; in cmd_llext_load_fs()
/Zephyr-latest/arch/xtensa/core/
Delf.c35 static void xtensa_elf_relocate(struct llext_loader *ldr, struct llext *ext, in xtensa_elf_relocate()
131 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local()
155 void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_global()
/Zephyr-latest/tests/subsys/llext/src/
Dtest_llext.c126 struct llext_loader *loader = &buf_loader.loader; in load_call_unload()
343 struct llext_loader *loader_dependency = &buf_loader_dependency.loader; in ZTEST()
344 struct llext_loader *loader_dependent = &buf_loader_dependent.loader; in ZTEST()
374 struct llext_loader *loader = &buf_loader.loader; in ZTEST()
410 struct llext_loader *loader = &buf_loader.loader; in ZTEST()
446 static struct llext_loader *detached_loader;
534 struct llext_loader *loader = &fs_loader.loader; in ZTEST()
/Zephyr-latest/samples/subsys/llext/modules/src/
Dmain_module.c24 struct llext_loader *ldr = &buf_loader.loader; in main()
/Zephyr-latest/tests/misc/llext-edk/src/
Dmain.c57 struct llext_loader *loader = &buf_loader.loader; in load_and_run_extension()
/Zephyr-latest/samples/subsys/llext/edk/app/src/
Dmain.c75 struct llext_loader *loader = &buf_loader.loader; in load()
/Zephyr-latest/doc/services/llext/
Dload.rst11 An extension may be loaded using any implementation of a :c:struct:`llext_loader`