bpf: Add is_fd_htab() helper
authorHou Tao <houtao1@huawei.com>
Tue, 1 Apr 2025 06:22:48 +0000 (14:22 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 10 Apr 2025 03:12:53 +0000 (20:12 -0700)
commite8a65856c75d518d0bb15f38c90a4fd264ba1d3a
treece443497eddd6818579a38a40ab7c6c8674982ca
parent2c304172e03193bd02363ee8969444261f7b7a57
bpf: Add is_fd_htab() helper

Add is_fd_htab() helper to check whether the map is htab of maps.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250401062250.543403-5-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/hashtab.c