Libbpf userspace function btf__add_enum64_value
Append new enum value for the current ENUM64
type.
Definition
int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value);
Parameters
btf
: pointer to astruct btf
objectname
: name of the enumerator value, can't beNULL
or empty;value
: integer value corresponding to enum valuename
.
Return
0
, on success; <0
, on error.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome