| /Zephyr-latest/include/zephyr/llext/ |
| D | loader.h | 42 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 …]
|
| D | fs_loader.h | 30 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);
|
| D | llext_internal.h | 29 const void *llext_loaded_sect_ptr(struct llext_loader *ldr, struct llext *ext, unsigned int sh_ndx); 32 static inline const char *llext_string(const struct llext_loader *ldr, const struct llext *ext, in llext_string() 38 static inline uintptr_t llext_get_reloc_instruction_location(struct llext_loader *ldr, in llext_get_reloc_instruction_location() 46 static inline const char *llext_section_name(const struct llext_loader *ldr, in llext_section_name() 53 static inline const char *llext_symbol_name(const struct llext_loader *ldr, in llext_symbol_name() 67 int llext_lookup_symbol(struct llext_loader *ldr, struct llext *ext, uintptr_t *link_addr, 74 int llext_read_symbol(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel,
|
| D | llext.h | 65 struct llext_loader; 217 int llext_load(struct llext_loader *loader, const char *name, struct llext **ext, 238 int llext_free_inspection_data(struct llext_loader *ldr, struct llext *ext); 370 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, 382 ssize_t llext_find_section(struct llext_loader *loader, const char *search_name); 397 int llext_get_section_header(struct llext_loader *loader, struct llext *ext, 410 void arch_elf_relocate_local(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel, 424 void arch_elf_relocate_global(struct llext_loader *loader, struct llext *ext, const elf_rela_t *rel,
|
| D | buf_loader.h | 29 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);
|
| D | inspect.h | 48 static inline int llext_get_region_info(const struct llext_loader *ldr, in llext_get_region_info() 86 int llext_section_shndx(const struct llext_loader *ldr, const struct llext *ext, 108 static inline int llext_get_section_info(const struct llext_loader *ldr, in llext_get_section_info()
|
| /Zephyr-latest/subsys/llext/ |
| D | llext_priv.h | 18 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext, 20 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext, 50 int do_llext_load(struct llext_loader *ldr, struct llext *ext, 57 int llext_link(struct llext_loader *ldr, struct llext *ext, 59 ssize_t llext_file_offset(struct llext_loader *ldr, uintptr_t offset);
|
| D | fs_loader.c | 15 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()
|
| D | buf_loader.c | 12 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()
|
| D | llext_link.c | 29 __weak int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate() 35 __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 ssize_t llext_file_offset(struct llext_loader *ldr, uintptr_t offset) in llext_file_offset() 148 int llext_read_symbol(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in llext_read_symbol() 167 int llext_lookup_symbol(struct llext_loader *ldr, struct llext *ext, uintptr_t *link_addr, in llext_lookup_symbol() 231 static void llext_link_plt(struct llext_loader *ldr, struct llext *ext, elf_shdr_t *shdr, in llext_link_plt() 366 int llext_link(struct llext_loader *ldr, struct llext *ext, const struct llext_load_param *ldr_parm) in llext_link()
|
| D | llext.c | 26 int llext_section_shndx(const struct llext_loader *ldr, const struct llext *ext, in llext_section_shndx() 42 int llext_get_section_header(struct llext_loader *ldr, struct llext *ext, const char *search_name, in llext_get_section_header() 56 ssize_t llext_find_section(struct llext_loader *ldr, const char *search_name) in llext_find_section() 167 int llext_load(struct llext_loader *ldr, const char *name, struct llext **ext, in llext_load()
|
| D | llext_load.c | 42 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() 153 static int llext_find_tables(struct llext_loader *ldr, struct llext *ext) in llext_find_tables() 230 static int llext_map_sections(struct llext_loader *ldr, struct llext *ext, in llext_map_sections() 510 static int llext_count_export_syms(struct llext_loader *ldr, struct llext *ext) in llext_count_export_syms() 560 static int llext_allocate_symtab(struct llext_loader *ldr, struct llext *ext) in llext_allocate_symtab() 575 static int llext_export_symbols(struct llext_loader *ldr, struct llext *ext, in llext_export_symbols() 630 static int llext_copy_symbols(struct llext_loader *ldr, struct llext *ext, in llext_copy_symbols() 712 int do_llext_load(struct llext_loader *ldr, struct llext *ext, in do_llext_load() 858 int llext_free_inspection_data(struct llext_loader *ldr, struct llext *ext) in llext_free_inspection_data()
|
| D | llext_mem.c | 61 static int llext_copy_region(struct llext_loader *ldr, struct llext *ext, in llext_copy_region() 186 int llext_copy_strings(struct llext_loader *ldr, struct llext *ext, in llext_copy_strings() 198 int llext_copy_regions(struct llext_loader *ldr, struct llext *ext, in llext_copy_regions()
|
| D | shell.c | 145 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/tests/subsys/llext/src/ |
| D | test_llext.c | 127 struct llext_loader *loader = &buf_loader.loader; in load_call_unload() 329 void do_inspect_checks(struct llext_loader *ldr, struct llext *ext, enum llext_mem reg_idx, in do_inspect_checks() 369 struct llext_loader *ldr = &buf_loader.loader; in ZTEST() 430 struct llext_loader *loader_dependency = &buf_loader_dependency.loader; in ZTEST() 431 struct llext_loader *loader_dependent = &buf_loader_dependent.loader; in ZTEST() 461 struct llext_loader *loader = &buf_loader.loader; in ZTEST() 497 struct llext_loader *loader = &buf_loader.loader; in ZTEST() 533 static struct llext_loader *detached_loader; 621 struct llext_loader *loader = &fs_loader.loader; in ZTEST()
|
| /Zephyr-latest/arch/xtensa/core/ |
| D | elf.c | 35 static void xtensa_elf_relocate(struct llext_loader *ldr, struct llext *ext, in xtensa_elf_relocate() 136 void arch_elf_relocate_local(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_local() 161 void arch_elf_relocate_global(struct llext_loader *ldr, struct llext *ext, const elf_rela_t *rel, in arch_elf_relocate_global()
|
| /Zephyr-latest/samples/subsys/llext/modules/src/ |
| D | main_module.c | 24 struct llext_loader *ldr = &buf_loader.loader; in main()
|
| /Zephyr-latest/arch/arc/core/ |
| D | elf.c | 35 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
|
| /Zephyr-latest/tests/misc/llext-edk/src/ |
| D | main.c | 57 struct llext_loader *loader = &buf_loader.loader; in load_and_run_extension()
|
| /Zephyr-latest/samples/subsys/llext/edk/app/src/ |
| D | main.c | 75 struct llext_loader *loader = &buf_loader.loader; in load()
|
| /Zephyr-latest/arch/riscv/core/ |
| D | elf.c | 82 static int llext_riscv_find_sym_pcrel(struct llext_loader *ldr, struct llext *ext, in llext_riscv_find_sym_pcrel() 200 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
|
| /Zephyr-latest/arch/arm64/core/ |
| D | elf.c | 434 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
|
| /Zephyr-latest/arch/arm/core/ |
| D | elf.c | 320 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
|
| /Zephyr-latest/doc/services/llext/ |
| D | load.rst | 11 An extension may be loaded using any implementation of a :c:struct:`llext_loader`
|