/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | bloom_filter_map.c | 99 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local 103 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(*rand_vals), in test_inner_map() 105 if (!ASSERT_GE(inner_map_fd, 0, "bpf_create_map bloom filter inner map")) in test_inner_map() 109 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map() 116 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map() 137 close(inner_map_fd); in test_inner_map()
|
A D | btf_map_in_map.c | 136 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()
|
A D | select_reuseport.c | 90 attr.inner_map_fd = reuseport_array; in create_maps()
|
/linux/tools/lib/bpf/ |
A D | bpf.c | 113 attr.inner_map_fd = create_attr->inner_map_fd; in libbpf__bpf_create_map_xattr() 139 p.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr() 195 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map_node() argument 206 attr.inner_map_fd = inner_map_fd; in bpf_create_map_in_map_node() 223 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map() argument 227 inner_map_fd, max_entries, map_flags, in bpf_create_map_in_map()
|
A D | bpf.h | 50 __u32 inner_map_fd; member 67 int inner_map_fd, int max_entries, 71 int inner_map_fd, int max_entries,
|
A D | gen_loader.c | 36 __u32 inner_map_fd; member 498 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create() 499 stack_off(inner_map_fd)); in bpf_gen__map_create() 525 stack_off(inner_map_fd))); in bpf_gen__map_create() 537 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
|
A D | libbpf_internal.h | 323 __u32 inner_map_fd; member
|
A D | libbpf.c | 385 int inner_map_fd; member 1427 obj->maps[i].inner_map_fd = -1; in bpf_object__add_map() 4876 map->inner_map_fd = bpf_map__fd(map->inner_map); in bpf_object__create_map() 4878 if (map->inner_map_fd >= 0) in bpf_object__create_map() 4879 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map() 9027 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd() 9032 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
|
/linux/samples/bpf/ |
A D | test_map_in_map_user.c | 34 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/tools/bpf/bpftool/ |
A D | map.c | 1326 int inner_map_fd; in do_create() local 1331 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create() 1333 if (inner_map_fd < 0) in do_create() 1335 attr.inner_map_fd = inner_map_fd; in do_create() 1364 if (attr.inner_map_fd > 0) in do_create() 1365 close(attr.inner_map_fd); in do_create()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 558 int inner_map_fd, outer_map_fd; in create_map_in_map() local 560 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map() 562 if (inner_map_fd < 0) { in create_map_in_map() 566 return inner_map_fd; in create_map_in_map() 570 sizeof(int), inner_map_fd, 1, 0); in create_map_in_map() 578 close(inner_map_fd); in create_map_in_map()
|
/linux/tools/include/uapi/linux/ |
A D | bpf.h | 1265 __u32 inner_map_fd; /* fd pointing to the inner map */ member
|
/linux/include/uapi/linux/ |
A D | bpf.h | 1265 __u32 inner_map_fd; /* fd pointing to the inner map */ member
|
/linux/kernel/bpf/ |
A D | arraymap.c | 1271 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
|
A D | hashtab.c | 2366 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()
|