Home
last modified time | relevance | path

Searched refs:inner_fd (Results 1 – 3 of 3) sorted by relevance

/linux/tools/sched_ext/
H A Dscx_pair.c134 __s32 inner_fd; in main() local
139 inner_fd = bpf_map_create(BPF_MAP_TYPE_QUEUE, NULL, 0, in main()
141 SCX_BUG_ON(inner_fd < 0, "Failed to get inner_fd: %d", in main()
142 inner_fd); in main()
143 SCX_BUG_ON(bpf_map_update_elem(outer_fd, &i, &inner_fd, BPF_ANY), in main()
145 close(inner_fd); in main()
/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c164 int zero = 0, ret = 0, outer_fd = -1, inner_fd = -1, err; in update_outer_map() local
183 inner_fd = bpf_sys_bpf(BPF_MAP_CREATE, attr, attr_sz); in update_outer_map()
184 if (inner_fd < 0) in update_outer_map()
190 attr->value = ptr_to_u64(&inner_fd); in update_outer_map()
203 if (inner_fd >= 0) in update_outer_map()
204 bpf_sys_close(inner_fd); in update_outer_map()
/linux/Documentation/bpf/
H A Dmap_of_maps.rst97 int create_outer_array(int inner_fd) {
98 LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd);