Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dprog.c929 int *mapfd) in parse_attach_detach_args() argument
945 *mapfd = 0; in parse_attach_detach_args()
953 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args()
954 if (*mapfd < 0) in parse_attach_detach_args()
955 return *mapfd; in parse_attach_detach_args()
964 int mapfd; in do_attach() local
967 &progfd, &attach_type, &mapfd); in do_attach()
971 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()
986 int mapfd; in do_detach() local
989 &progfd, &attach_type, &mapfd); in do_detach()
[all …]