Searched refs:mapfd (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_listen.c | 324 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-6.1.9/tools/bpf/bpftool/ |
D | prog.c | 1025 int *mapfd) in parse_attach_detach_args() argument 1041 *mapfd = 0; in parse_attach_detach_args() 1049 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args() 1050 if (*mapfd < 0) in parse_attach_detach_args() 1051 return *mapfd; in parse_attach_detach_args() 1060 int mapfd; in do_attach() local 1063 &progfd, &attach_type, &mapfd); in do_attach() 1067 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach() 1082 int mapfd; in do_detach() local 1085 &progfd, &attach_type, &mapfd); in do_detach() [all …]
|