Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c136 int err, inner_map_fd, zero = 0; in test_diff_size() local
142 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
144 &inner_map_fd, 0); in test_diff_size()
148 inner_map_fd = bpf_map__fd(skel->maps.inner_map_sz2); in test_diff_size()
150 &inner_map_fd, 0); in test_diff_size()
Dselect_reuseport.c90 attr.inner_map_fd = reuseport_array; in create_maps()
/Linux-v5.15/samples/bpf/
Dtest_map_in_map_user.c34 static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) in check_map_id() argument
40 ret = bpf_obj_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
/Linux-v5.15/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.c104 attr.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr()
161 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map_node() argument
172 attr.inner_map_fd = inner_map_fd; in bpf_create_map_in_map_node()
189 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map() argument
193 inner_map_fd, max_entries, map_flags, in bpf_create_map_in_map()
Dgen_loader.c34 __u32 inner_map_fd; member
433 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create()
434 stack_off(inner_map_fd)); in bpf_gen__map_create()
460 stack_off(inner_map_fd))); in bpf_gen__map_create()
470 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
Dlibbpf.c362 int inner_map_fd; member
1388 obj->maps[i].inner_map_fd = -1; in bpf_object__add_map()
4610 map->inner_map_fd = bpf_map__fd(map->inner_map); in bpf_object__create_map()
4612 if (map->inner_map_fd >= 0) in bpf_object__create_map()
4613 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map()
8669 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd()
8674 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
/Linux-v5.15/tools/bpf/bpftool/
Dmap.c1315 int inner_map_fd; in do_create() local
1320 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create()
1322 if (inner_map_fd < 0) in do_create()
1324 attr.inner_map_fd = inner_map_fd; in do_create()
1353 if (attr.inner_map_fd > 0) in do_create()
1354 close(attr.inner_map_fd); in do_create()
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_verifier.c553 int inner_map_fd, outer_map_fd; in create_map_in_map() local
555 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
557 if (inner_map_fd < 0) { in create_map_in_map()
561 return inner_map_fd; in create_map_in_map()
565 sizeof(int), inner_map_fd, 1, 0); in create_map_in_map()
573 close(inner_map_fd); in create_map_in_map()
/Linux-v5.15/include/uapi/linux/
Dbpf.h1264 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/Linux-v5.15/tools/include/uapi/linux/
Dbpf.h1264 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/Linux-v5.15/kernel/bpf/
Darraymap.c1272 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
Dhashtab.c2367 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()