Home
last modified time | relevance | path

Searched refs:llext_loader (Results 1 – 24 of 24) 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);
Dllext_internal.h29 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,
Dllext.h65 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,
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);
Dinspect.h48 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/
Dllext_priv.h18 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);
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_link.c29 __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()
Dllext.c26 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()
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()
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()
Dllext_mem.c61 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()
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/tests/subsys/llext/src/
Dtest_llext.c127 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/
Delf.c35 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/
Dmain_module.c24 struct llext_loader *ldr = &buf_loader.loader; in main()
/Zephyr-latest/arch/arc/core/
Delf.c35 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/
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/arch/riscv/core/
Delf.c82 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/
Delf.c434 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
/Zephyr-latest/arch/arm/core/
Delf.c320 int arch_elf_relocate(struct llext_loader *ldr, struct llext *ext, elf_rela_t *rel, in arch_elf_relocate()
/Zephyr-latest/doc/services/llext/
Dload.rst11 An extension may be loaded using any implementation of a :c:struct:`llext_loader`