eBPF for Windows
Data Fields
_metadata_table Struct Reference

Metadata table for a module. This structure is returned by the module's metadata function, get_metadata_table and contains information about the module including the list of programs and maps. More...

#include <bpf2c.h>

Data Fields

size_t size
 Size of this structure. Used for versioning. More...
 
void(* programs )((*count) program_entry_t **programs, size_t *count)
 Returns the list of programs in this module. More...
 
void(* maps )((*count) map_entry_t **maps, size_t *count)
 Returns the list of maps in this module. More...
 
void(* hash )((*size) const uint8_t **hash, size_t *size)
 Returns the hash of the ELF file used to generate this module. More...
 
void(* version )(bpf2c_version_t *version)
 
void(* map_initial_values )((*count) map_initial_values_t **map_initial_values, size_t *count)
 Returns the list of initial values for maps in this module. More...
 

Detailed Description

Metadata table for a module. This structure is returned by the module's metadata function, get_metadata_table and contains information about the module including the list of programs and maps.

Field Documentation

◆ hash

void(* _metadata_table::hash) ((*size) const uint8_t **hash, size_t *size)

Returns the hash of the ELF file used to generate this module.

◆ map_initial_values

void(* _metadata_table::map_initial_values) ((*count) map_initial_values_t **map_initial_values, size_t *count)

Returns the list of initial values for maps in this module.

◆ maps

void(* _metadata_table::maps) ((*count) map_entry_t **maps, size_t *count)

Returns the list of maps in this module.

◆ programs

void(* _metadata_table::programs) ((*count) program_entry_t **programs, size_t *count)

Returns the list of programs in this module.

◆ size

size_t _metadata_table::size

Size of this structure. Used for versioning.

◆ version

void(* _metadata_table::version) (bpf2c_version_t *version)

The documentation for this struct was generated from the following file: