Libbpf userspace function bpf_object__load
loads BPF object into kernel.
Definition
int bpf_object__load(struct bpf_object *obj);
Parameters
obj
: Pointer to a valid BPF object instance returned bybpf_object__open
,bpf_object__open_file
, orbpf_object__open_mem
Return
0
, on success; negative error code, otherwise, 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