Libbpf userspace function libbpf_bpf_map_type_str
Converts the provided map type value into a textual representation.
Definition
const char *libbpf_bpf_map_type_str(enum bpf_map_type t);
Parameters
t
: The map type.
Return
Pointer to a static string identifying the map type. NULL
is returned for unknown bpf_map_type
values.
Usage
This function allows you to take a ELF section name and query to which program type and attach type it corresponds to, if libbpf knows about it. Conversion happens following this table
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome