| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | map_in_map_batch_ops.c | 66 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()
|
| H A D | map_percpu_stats.c | 396 .inner_map_fd = create_small_hash(), in create_hash_of_maps() 402 close(map_opts.inner_map_fd); in create_hash_of_maps()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bloom_filter_map.c | 112 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local 116 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map() 118 if (!ASSERT_GE(inner_map_fd, 0, "bpf_map_create bloom filter inner map")) in test_inner_map() 122 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map() 129 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map() 150 close(inner_map_fd); in test_inner_map()
|
| H A D | btf_map_in_map.c | 112 int err, inner_map_fd, zero = 0; in test_diff_size() local 118 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size() 120 &inner_map_fd, 0); in test_diff_size() 124 inner_map_fd = bpf_map__fd(skel->maps.inner_map_sz2); in test_diff_size() 126 &inner_map_fd, 0); in test_diff_size()
|
| H A D | percpu_array_inner_map.c | 22 opts.inner_map_fd = tmpl_fd; in test_percpu_array_inner_map()
|
| H A D | select_reuseport.c | 75 opts.inner_map_fd = reuseport_array; in create_maps()
|
| /linux/samples/bpf/ |
| H A D | test_map_in_map_user.c | 35 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/tools/bpf/bpftool/ |
| H A D | map.c | 1377 int inner_map_fd; in do_pop_dequeue() 1382 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_pop_dequeue() 1384 if (inner_map_fd < 0) in do_pop_dequeue() 1386 attr.inner_map_fd = inner_map_fd; in do_pop_dequeue() 1415 if (attr.inner_map_fd > 0) in do_pop_dequeue() 1416 close(attr.inner_map_fd); 1330 int inner_map_fd; do_create() local
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 637 int inner_map_fd, outer_map_fd; in create_map_in_map() local 639 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map() 641 if (inner_map_fd < 0) { in create_map_in_map() 645 return inner_map_fd; in create_map_in_map() 648 opts.inner_map_fd = inner_map_fd; in create_map_in_map() 658 close(inner_map_fd); in create_map_in_map()
|
| /linux/tools/lib/bpf/ |
| H A D | gen_loader.c | 36 __u32 inner_map_fd; member 537 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create() 538 stack_off(inner_map_fd)); in bpf_gen__map_create() 574 stack_off(inner_map_fd))); in bpf_gen__map_create() 586 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__record_attach_target()
|
| H A D | libbpf_probes.c | 399 opts.inner_map_fd = fd_inner; in probe_map_create()
|
| H A D | libbpf.c | 586 int inner_map_fd; 1877 map->inner_map_fd = -1; in internal_map_name() 5517 map->inner_map_fd = map->inner_map->fd; in bpf_object__create_map() 5519 if (map->inner_map_fd >= 0) in bpf_object__create_map() 5520 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map() 11739 if (map->inner_map_fd != -1) { in perf_event_open_probe() 11740 pr_warn("error: inner_map_fd already specified\n"); in perf_event_open_probe() 11747 map->inner_map_fd = fd; in perf_event_open_probe() 583 int inner_map_fd; global() member
|
| /linux/Documentation/bpf/ |
| H A D | map_of_maps.rst | 98 LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd);
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1583 __u32 inner_map_fd; /* fd pointing to the inner map */ 1536 __u32 inner_map_fd; /* fd pointing to the inner map */ global() member
|
| /linux/kernel/bpf/ |
| H A D | arraymap.c | 1439 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
|
| H A D | hashtab.c | 2903 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in rhtab_map_alloc_check()
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 1583 __u32 inner_map_fd; /* fd pointing to the inner map */ 1536 __u32 inner_map_fd; /* fd pointing to the inner map */ global() member
|