Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/map_tests/
Dmap_in_map_batch_ops.c66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) in create_outer_map() argument
71 attr.inner_map_fd = inner_map_fd; in create_outer_map()
88 int inner_map_fd, entry, err; in validate_fetch_results() local
93 inner_map_fd = bpf_map_get_fd_by_id(outer_map_value); in validate_fetch_results()
94 CHECK(inner_map_fd < 0, in validate_fetch_results()
98 err = bpf_map_get_next_key(inner_map_fd, NULL, &inner_map_key); in validate_fetch_results()
103 err = bpf_map_lookup_elem(inner_map_fd, &inner_map_key, in validate_fetch_results()
106 close(inner_map_fd); in validate_fetch_results()
Dmap_percpu_stats.c372 .inner_map_fd = create_small_hash(), in create_hash_of_maps()
378 close(map_opts.inner_map_fd); in create_hash_of_maps()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dbloom_filter_map.c101 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local
105 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
107 if (!ASSERT_GE(inner_map_fd, 0, "bpf_map_create bloom filter inner map")) in test_inner_map()
111 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map()
118 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map()
139 close(inner_map_fd); in test_inner_map()
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.c79 opts.inner_map_fd = reuseport_array; in create_maps()
/Linux-v6.6/samples/bpf/
Dtest_map_in_map_user.c35 static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) in check_map_id() argument
41 ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
/Linux-v6.6/tools/bpf/bpftool/
Dmap.c1312 int inner_map_fd; in do_create() local
1317 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create()
1319 if (inner_map_fd < 0) in do_create()
1321 attr.inner_map_fd = inner_map_fd; in do_create()
1350 if (attr.inner_map_fd > 0) in do_create()
1351 close(attr.inner_map_fd); in do_create()
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_verifier.c639 int inner_map_fd, outer_map_fd; in create_map_in_map() local
641 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map()
643 if (inner_map_fd < 0) { in create_map_in_map()
647 return inner_map_fd; in create_map_in_map()
650 opts.inner_map_fd = inner_map_fd; in create_map_in_map()
660 close(inner_map_fd); in create_map_in_map()
/Linux-v6.6/tools/lib/bpf/
Dgen_loader.c36 __u32 inner_map_fd; member
484 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create()
485 stack_off(inner_map_fd)); in bpf_gen__map_create()
511 stack_off(inner_map_fd))); in bpf_gen__map_create()
523 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
Dlibbpf_probes.c366 opts.inner_map_fd = fd_inner; in probe_map_create()
Dbpf.h48 __u32 inner_map_fd; member
Dbpf.c195 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create()
Dlibbpf.c516 int inner_map_fd; member
1506 map->inner_map_fd = -1; in bpf_object__add_map()
5128 map->inner_map_fd = bpf_map__fd(map->inner_map); in bpf_object__create_map()
5130 if (map->inner_map_fd >= 0) in bpf_object__create_map()
5131 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map()
9711 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd()
9719 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
/Linux-v6.6/Documentation/bpf/
Dmap_of_maps.rst98 LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd);
/Linux-v6.6/kernel/bpf/
Darraymap.c1329 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
Dhashtab.c2534 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h1366 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/Linux-v6.6/include/uapi/linux/
Dbpf.h1366 __u32 inner_map_fd; /* fd pointing to the inner map */ member