Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_pinning.c41 int map_fd = -1, map_fd2 = -1; in bpf_obj_pinning_detached() local
89 map_fd2 = bpf_obj_get_opts(map_name, &get_opts); in bpf_obj_pinning_detached()
90 if (!ASSERT_GE(map_fd2, 0, "map_get")) in bpf_obj_pinning_detached()
100 err = bpf_map_lookup_elem(map_fd2, &zero, &dst_value); in bpf_obj_pinning_detached()
108 if (map_fd2 >= 0) in bpf_obj_pinning_detached()
109 ASSERT_OK(close(map_fd2), "close_map_fd2"); in bpf_obj_pinning_detached()
129 int zero = 0, dst_value, map_fd2, err; in validate_pin() local
164 map_fd2 = bpf_obj_get(abs_path); in validate_pin()
165 if (!ASSERT_GE(map_fd2, 0, "map_get")) in validate_pin()
174 err = bpf_map_lookup_elem(map_fd2, &zero, &dst_value); in validate_pin()
[all …]