Skip to content

Libbpf userspace function bpf_object__unpin

1.3.0

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 object
  • path: 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