Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_listen.c35 int family, int sotype, int mapfd) in test_insert_invalid() argument
42 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
47 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid()
53 int family, int sotype, int mapfd) in test_insert_opened() argument
65 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_opened()
75 int family, int sotype, int mapfd) in test_insert_bound() argument
95 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound()
103 int family, int sotype, int mapfd) in test_insert() argument
115 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert()
120 int family, int sotype, int mapfd) in test_delete_after_insert() argument
[all …]
H A Dsockmap_helpers.h72 static inline int add_to_sockmap(int mapfd, int fd1, int fd2) in add_to_sockmap() argument
76 err = xbpf_map_update_elem(mapfd, &u32(0), &u64(fd1), BPF_NOEXIST); in add_to_sockmap()
80 return xbpf_map_update_elem(mapfd, &u32(1), &u64(fd2), BPF_NOEXIST); in add_to_sockmap()
/linux/tools/bpf/bpftool/
H A Dprog.c1042 int *mapfd) in parse_attach_detach_args() argument
1058 *mapfd = 0; in parse_attach_detach_args()
1066 *mapfd = map_parse_fd(&argc, &argv, 0); in parse_attach_detach_args()
1067 if (*mapfd < 0) in parse_attach_detach_args()
1068 return *mapfd; in parse_attach_detach_args()
1077 int mapfd; in do_attach() local
1080 &progfd, &attach_type, &mapfd); in do_attach()
1084 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()
1099 int mapfd; in do_detach() local
1102 &progfd, &attach_type, &mapfd); in do_detach()
[all …]