Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c34 int inner_map_fd, outer_map_fd, err, zero = 0; in kern_sync_rcu() local
36 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 4, 1, 0); in kern_sync_rcu()
37 if (CHECK(inner_map_fd < 0, "inner_map_create", "failed %d\n", -errno)) in kern_sync_rcu()
41 sizeof(int), inner_map_fd, 1, 0); in kern_sync_rcu()
43 close(inner_map_fd); in kern_sync_rcu()
47 err = bpf_map_update_elem(outer_map_fd, &zero, &inner_map_fd, 0); in kern_sync_rcu()
51 close(inner_map_fd); in kern_sync_rcu()
169 int err, inner_map_fd, zero = 0; in test_diff_size() local
175 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
177 &inner_map_fd, 0); in test_diff_size()
[all …]
Dselect_reuseport.c90 attr.inner_map_fd = reuseport_array; in create_maps()
/tools/lib/bpf/
Dbpf.h50 __u32 inner_map_fd; member
67 int inner_map_fd, int max_entries,
71 int inner_map_fd, int max_entries,
Dbpf.c102 attr.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr()
158 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map_node() argument
168 attr.inner_map_fd = inner_map_fd; in bpf_create_map_in_map_node()
184 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map() argument
188 inner_map_fd, max_entries, map_flags, in bpf_create_map_in_map()
Dlibbpf.c340 int inner_map_fd; member
1324 obj->maps[i].inner_map_fd = -1; in bpf_object__add_map()
4225 map->inner_map_fd = bpf_map__fd(map->inner_map); in bpf_object__create_map()
4227 if (map->inner_map_fd >= 0) in bpf_object__create_map()
4228 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map()
8973 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd()
8977 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
/tools/bpf/bpftool/
Dmap.c1314 int inner_map_fd; in do_create() local
1319 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create()
1321 if (inner_map_fd < 0) in do_create()
1323 attr.inner_map_fd = inner_map_fd; in do_create()
1352 if (attr.inner_map_fd > 0) in do_create()
1353 close(attr.inner_map_fd); in do_create()
/tools/testing/selftests/bpf/
Dtest_verifier.c477 int inner_map_fd, outer_map_fd; in create_map_in_map() local
479 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
481 if (inner_map_fd < 0) { in create_map_in_map()
485 return inner_map_fd; in create_map_in_map()
489 sizeof(int), inner_map_fd, 1, 0); in create_map_in_map()
497 close(inner_map_fd); in create_map_in_map()
/tools/include/uapi/linux/
Dbpf.h492 __u32 inner_map_fd; /* fd pointing to the inner map */ member