Home
last modified time | relevance | path

Searched refs:mapfd (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dsockmap_listen.c324 static void test_insert_invalid(int family, int sotype, int mapfd) in test_insert_invalid() argument
331 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
336 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
341 static void test_insert_opened(int family, int sotype, int mapfd) in test_insert_opened() argument
353 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_opened()
360 static void test_insert_bound(int family, int sotype, int mapfd) in test_insert_bound() argument
380 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound()
387 static void test_insert(int family, int sotype, int mapfd) in test_insert() argument
399 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert()
403 static void test_delete_after_insert(int family, int sotype, int mapfd) in test_delete_after_insert() argument
[all …]
/Linux-v5.10/tools/bpf/bpftool/
Dprog.c927 int *mapfd) in parse_attach_detach_args() argument
943 *mapfd = 0; in parse_attach_detach_args()
951 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args()
952 if (*mapfd < 0) in parse_attach_detach_args()
953 return *mapfd; in parse_attach_detach_args()
962 int mapfd; in do_attach() local
965 &progfd, &attach_type, &mapfd); in do_attach()
969 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()
984 int mapfd; in do_detach() local
987 &progfd, &attach_type, &mapfd); in do_detach()
[all …]