Libbpf userspace function bpf_object__unpin
Unpins each program and map contained within the BPF object at the passed directory.
Definition
int bpf_object__unpin(struct bpf_object *object, const char *path);
Parameters
obj: Pointer to a valid BPF objectpath: A directory where programs should be pinned.
Return
0, on success; negative error code, otherwise
Usage
Calls both bpf_object__unpin_maps and bpf_object__unpin_programs with the same path argument.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome