Searched refs:mapfd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | sockmap_listen.c | 418 xbpf_map_delete_elem(mapfd, &key); in test_delete_after_insert() 439 err = bpf_map_delete_elem(mapfd, &key); in test_delete_after_close() 486 xbpf_map_delete_elem(mapfd, &key); in test_lookup_after_delete() 507 if (mapfd < 0) { in test_lookup_32_bit_value() 521 xclose(mapfd); in test_lookup_32_bit_value() 608 xbpf_map_delete_elem(mapfd, &key); in test_clone_after_delete() 656 err = xbpf_map_delete_elem(mapfd, &zero); in test_accept_after_delete() 896 static void zero_verdict_count(int mapfd) in zero_verdict_count() argument 1417 int err, mapfd; in test_ops_cleanup() local 1421 mapfd = bpf_map__fd(map); in test_ops_cleanup() [all …]
|
/linux/tools/bpf/bpftool/ |
A D | prog.c | 952 int *mapfd) in parse_attach_detach_args() argument 968 *mapfd = 0; in parse_attach_detach_args() 976 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args() 977 if (*mapfd < 0) in parse_attach_detach_args() 978 return *mapfd; in parse_attach_detach_args() 987 int mapfd; in do_attach() local 990 &progfd, &attach_type, &mapfd); in do_attach() 994 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach() 1009 int mapfd; in do_detach() local 1012 &progfd, &attach_type, &mapfd); in do_detach() [all …]
|
Completed in 11 milliseconds