Home
last modified time | relevance | path

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

/Linux-v5.15/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()
362 static void test_insert_bound(int family, int sotype, int mapfd) in test_insert_bound() argument
382 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound()
389 static void test_insert(int family, int sotype, int mapfd) in test_insert() argument
401 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert()
405 static void test_delete_after_insert(int family, int sotype, int mapfd) in test_delete_after_insert() argument
[all …]
/Linux-v5.15/tools/bpf/bpftool/
Dprog.c940 int *mapfd) in parse_attach_detach_args() argument
956 *mapfd = 0; in parse_attach_detach_args()
964 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args()
965 if (*mapfd < 0) in parse_attach_detach_args()
966 return *mapfd; in parse_attach_detach_args()
975 int mapfd; in do_attach() local
978 &progfd, &attach_type, &mapfd); in do_attach()
982 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()
997 int mapfd; in do_detach() local
1000 &progfd, &attach_type, &mapfd); in do_detach()
[all …]