Libbpf userspace function bpf_object__unpin_programs
Unpins each program contained within the BPF object at the passed directory.
Definition
int bpf_object__unpin_programs(struct bpf_object *obj, const char *path);
Parameters
obj
: Pointer to a valid BPF objectpath
: A directory where programs should be unpinned.
Return
0
, on success; negative error code, otherwise
Usage
Each program will be unpinned from this directory, path
must be set to a valid directory. The name of the pin-file will be the name of the program.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome