Lines Matching refs:ext
18 ssize_t z_impl_llext_get_fn_table(struct llext *ext, bool is_init, void *buf, size_t buf_size) in z_impl_llext_get_fn_table() argument
22 if (!ext) { in z_impl_llext_get_fn_table()
27 table_size = ext->mem_size[LLEXT_MEM_PREINIT] + in z_impl_llext_get_fn_table()
28 ext->mem_size[LLEXT_MEM_INIT]; in z_impl_llext_get_fn_table()
30 table_size = ext->mem_size[LLEXT_MEM_FINI]; in z_impl_llext_get_fn_table()
43 ext->mem[LLEXT_MEM_PREINIT], ext->mem_size[LLEXT_MEM_PREINIT]); in z_impl_llext_get_fn_table()
44 memcpy(byte_ptr + ext->mem_size[LLEXT_MEM_PREINIT], in z_impl_llext_get_fn_table()
45 ext->mem[LLEXT_MEM_INIT], ext->mem_size[LLEXT_MEM_INIT]); in z_impl_llext_get_fn_table()
49 ext->mem[LLEXT_MEM_FINI], ext->mem_size[LLEXT_MEM_FINI]); in z_impl_llext_get_fn_table()
57 const char *text_start = ext->mem[LLEXT_MEM_TEXT]; in z_impl_llext_get_fn_table()
58 const char *text_end = text_start + ext->mem_size[LLEXT_MEM_TEXT]; in z_impl_llext_get_fn_table()
76 static int ext_is_valid(struct llext *ext, void *arg) in ext_is_valid() argument
78 return ext == arg; in ext_is_valid()
81 static inline ssize_t z_vrfy_llext_get_fn_table(struct llext *ext, bool is_init, in z_vrfy_llext_get_fn_table() argument
85 K_OOPS(llext_iterate(ext_is_valid, ext) == 0); in z_vrfy_llext_get_fn_table()
92 return z_impl_llext_get_fn_table(ext, is_init, buf, size); in z_vrfy_llext_get_fn_table()