OSDN Git Service

libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7
authorHengqi Chen <hengqi.chen@gmail.com>
Sun, 3 Oct 2021 16:58:43 +0000 (00:58 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Oct 2021 19:34:02 +0000 (12:34 -0700)
commit2088a3a71d870115fdfb799c0f7de76d7383ba03
tree855fc5e6d923aac2c2c6ebe4c9e90e198d4ade1d
parent4a404a7e8a3902fc560527241a611186605efb4e
libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7

Deprecate bpf_{map,program}__{prev,next} APIs. Replace them with
a new set of APIs named bpf_object__{prev,next}_{program,map} which
follow the libbpf API naming convention ([0]). No functionality changes.

  [0] Closes: https://github.com/libbpf/libbpf/issues/296

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211003165844.4054931-2-hengqi.chen@gmail.com
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map