Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
inspect.h File Reference

LLEXT ELF inspection routines. More...

#include <stddef.h>
#include <zephyr/llext/llext.h>
#include <zephyr/llext/loader.h>
#include <zephyr/llext/llext_internal.h>

Go to the source code of this file.

Functions

static int llext_get_region_info (const struct llext_loader *ldr, const struct llext *ext, enum llext_mem region, const elf_shdr_t **hdr, const void **addr, size_t *size)
 Get information about a memory region for the specified extension.
 
int llext_section_shndx (const struct llext_loader *ldr, const struct llext *ext, const char *section_name)
 Get the index of a section with the specified name.
 
static int llext_get_section_info (const struct llext_loader *ldr, const struct llext *ext, unsigned int shndx, const elf_shdr_t **hdr, enum llext_mem *region, size_t *offset)
 Get information about a section for the specified extension.
 

Detailed Description

LLEXT ELF inspection routines.

This file contains routines to inspect the contents of an ELF file. It is intended to be used by applications that need advanced access to the ELF file structures of a loaded extension.