Re: [PATCH bpf-next] libbpf: Add bpf_object__unpin()

From: Song Liu
Date: Wed Aug 23 2023 - 07:30:23 EST


On Tue, Aug 22, 2023 at 10:44 PM Daniel Xu <dxu@xxxxxxxxx> wrote:
>
> For bpf_object__pin_programs() there is bpf_object__unpin_programs().
> Likewise bpf_object__unpin_maps() for bpf_object__pin_maps().
>
> But no bpf_object__unpin() for bpf_object__pin(). Adding the former adds
> symmetry to the API.
>
> It's also convenient for cleanup in application code. It's an API I
> would've used if it was available for a repro I was writing earlier.
>
> Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>

Reviewed-by: Song Liu <song@xxxxxxxxxx>