/linux-master/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) argument 71 attr.inner_map_fd = inner_map_fd; 88 int inner_map_fd, entry, err; local 93 inner_map_fd = bpf_map_get_fd_by_id(outer_map_value); 94 CHECK(inner_map_fd < 0, 98 err = bpf_map_get_next_key(inner_map_fd, NULL, &inner_map_key); 103 err = bpf_map_lookup_elem(inner_map_fd, &inner_map_key, 106 close(inner_map_fd);
|
H A D | map_percpu_stats.c | 395 .inner_map_fd = create_small_hash(), 401 close(map_opts.inner_map_fd);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_map_in_map.c | 136 int err, inner_map_fd, zero = 0; local 142 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); 144 &inner_map_fd, 0); 148 inner_map_fd = bpf_map__fd(skel->maps.inner_map_sz2); 150 &inner_map_fd, 0);
|
H A D | bloom_filter_map.c | 107 int outer_map_fd, inner_map_fd, err, i, key = 0; local 111 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), 113 if (!ASSERT_GE(inner_map_fd, 0, "bpf_map_create bloom filter inner map")) 117 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); 118 if (!ASSERT_OK(err, "Add random value to inner_map_fd")) 124 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); 145 close(inner_map_fd);
|
H A D | select_reuseport.c | 79 opts.inner_map_fd = reuseport_array;
|
/linux-master/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) argument 41 ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len);
|
/linux-master/tools/bpf/bpftool/ |
H A D | map.c | 1312 int inner_map_fd; local 1317 inner_map_fd = map_parse_fd_and_info(&argc, &argv, 1319 if (inner_map_fd < 0) 1321 attr.inner_map_fd = inner_map_fd; 1350 if (attr.inner_map_fd > 0) 1351 close(attr.inner_map_fd);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 641 int inner_map_fd, outer_map_fd; local 643 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), 645 if (inner_map_fd < 0) { 649 return inner_map_fd; 652 opts.inner_map_fd = inner_map_fd; 662 close(inner_map_fd);
|
/linux-master/tools/lib/bpf/ |
H A D | gen_loader.c | 36 __u32 inner_map_fd; member in struct:loader_stack 484 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, 485 stack_off(inner_map_fd)); 511 stack_off(inner_map_fd))); 523 emit_sys_close_stack(gen, stack_off(inner_map_fd));
|
H A D | libbpf_probes.c | 379 opts.inner_map_fd = fd_inner;
|
H A D | bpf.h | 48 __u32 inner_map_fd; member in struct:bpf_map_create_opts
|
H A D | bpf.c | 199 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0);
|
H A D | libbpf.c | 532 int inner_map_fd; member in struct:bpf_map 1694 map->inner_map_fd = -1; 5093 map->inner_map_fd = map->inner_map->fd; 5095 if (map->inner_map_fd >= 0) 5096 create_attr.inner_map_fd = map->inner_map_fd; 10208 if (map->inner_map_fd != -1) { 10209 pr_warn("error: inner_map_fd already specified\n"); 10216 map->inner_map_fd = fd;
|
/linux-master/kernel/bpf/ |
H A D | arraymap.c | 1298 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd);
|
H A D | hashtab.c | 2548 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd);
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 1463 __u32 inner_map_fd; /* fd pointing to the inner map */ member in struct:bpf_attr::__anon2589
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 1463 __u32 inner_map_fd; /* fd pointing to the inner map */ member in struct:bpf_attr::__anon3130
|