Libbpf userspace function bpf_object__open
creates a struct bpf_object
by opening the BPF ELF object file pointed to by the passed path and loading it into memory.
Definition
struct bpf_object *bpf_object__open(const char *path);
Parameters
path
: BPF object file path.
Return
pointer to the new struct bpf_object
; or NULL
is returned on error, error code is stored in errno
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