Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c34 int inner_map_fd, outer_map_fd, err, zero = 0; in kern_sync_rcu() local
36 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 4, 1, 0); in kern_sync_rcu()
37 if (CHECK(inner_map_fd < 0, "inner_map_create", "failed %d\n", -errno)) in kern_sync_rcu()
41 sizeof(int), inner_map_fd, 1, 0); in kern_sync_rcu()
43 close(inner_map_fd); in kern_sync_rcu()
47 err = bpf_map_update_elem(outer_map_fd, &zero, &inner_map_fd, 0); in kern_sync_rcu()
51 close(inner_map_fd); in kern_sync_rcu()
169 int err, inner_map_fd, zero = 0; in test_diff_size() local
175 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
177 &inner_map_fd, 0); in test_diff_size()
[all …]
H A Dselect_reuseport.c90 attr.inner_map_fd = reuseport_array; in create_maps()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbpf.h50 __u32 inner_map_fd; member
67 int inner_map_fd, int max_entries,
71 int inner_map_fd, int max_entries,
H A Dbpf.c102 attr.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr()
158 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map_node() argument
168 attr.inner_map_fd = inner_map_fd; in bpf_create_map_in_map_node()
184 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map() argument
188 inner_map_fd, max_entries, map_flags, in bpf_create_map_in_map()
H A Dlibbpf.c340 int inner_map_fd; member
1324 obj->maps[i].inner_map_fd = -1; in bpf_object__add_map()
4222 map->inner_map_fd = bpf_map__fd(map->inner_map); in bpf_object__create_map()
4224 if (map->inner_map_fd >= 0) in bpf_object__create_map()
4225 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map()
8970 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd()
8974 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
/OK3568_Linux_fs/kernel/samples/bpf/
H A 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()
H A Dbpf_load.c285 int inner_map_fd = map_fd[maps[i].def.inner_map_idx]; in load_maps() local
290 inner_map_fd, in load_maps()
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dmap.c1314 int inner_map_fd; in do_create() local
1319 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create()
1321 if (inner_map_fd < 0) in do_create()
1323 attr.inner_map_fd = inner_map_fd; in do_create()
1352 if (attr.inner_map_fd > 0) in do_create()
1353 close(attr.inner_map_fd); in do_create()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_verifier.c476 int inner_map_fd, outer_map_fd; in create_map_in_map() local
478 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
480 if (inner_map_fd < 0) { in create_map_in_map()
484 return inner_map_fd; in create_map_in_map()
488 sizeof(int), inner_map_fd, 1, 0); in create_map_in_map()
496 close(inner_map_fd); in create_map_in_map()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf.h300 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf.h300 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h492 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h492 __u32 inner_map_fd; /* fd pointing to the inner map */ member
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Darraymap.c1231 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
H A Dhashtab.c2076 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()