| /linux-6.15/tools/testing/selftests/net/ |
| H A D | bind_bhash.c | 28 static int fd_array[MAX_THREADS][MAX_CONNECTIONS]; variable 114 pthread_create(&tid[i], NULL, setup, fd_array[i]); in main() 140 close(fd_array[i][j]); in main()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fd_array.c | 98 static int __load_test_prog(int map_fd, const int *fd_array, int fd_array_cnt) in __load_test_prog() argument 112 opts.fd_array = fd_array; in __load_test_prog() 118 static int load_test_prog(const int *fd_array, int fd_array_cnt) in load_test_prog() argument 127 ret = __load_test_prog(map_fd, fd_array, fd_array_cnt); in load_test_prog()
|
| /linux-6.15/tools/perf/tests/shell/ |
| H A D | test_intel_pt.sh | 185 fd_array[fd] = fd 195 if (fd in fd_array) { 209 if (fd in fd_array) { 210 if (fd_to in fd_array) { 223 print "Checking " length(fd_array) " fds" 224 for (fd in fd_array) {
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 968 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, in fixup_prog_kfuncs() argument 996 *fd_array = btf__fd(testmod_btf); in fixup_prog_kfuncs() 1008 struct bpf_insn *prog, int *map_fds, int *fd_array) in do_test_fixup() argument 1233 fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id); in do_test_fixup() 1514 int fd_array[2] = { -1, -1 }; in do_test_single() local 1535 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]); in do_test_single() 1569 if (fd_array[1] != -1) in do_test_single() 1570 opts.fd_array = &fd_array[0]; in do_test_single()
|
| /linux-6.15/include/linux/ |
| H A D | fdtable.h | 56 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member
|
| H A D | bpf_verifier.h | 797 bpfptr_t fd_array; member
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | bpf_gen_internal.h | 51 int fd_array; member
|
| H A D | skel_internal.h | 311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_load_and_run() 336 attr.fd_array = (long) &map_fd; in bpf_load_and_run()
|
| H A D | gen_loader.c | 48 return gen->fd_array + index * sizeof(int); in blob_fd_array_off() 119 gen->fd_array = add_data(gen, NULL, MAX_FD_ARRAY_SZ * sizeof(int)); in bpf_gen__init() 195 return (cur - gen->fd_array) / sizeof(int); in add_kfunc_btf_fd() 1073 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), gen->fd_array); in bpf_gen__prog_load()
|
| H A D | bpf.h | 87 const int *fd_array; member
|
| H A D | bpf.c | 313 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL)); in bpf_prog_load()
|
| H A D | libbpf.c | 730 int *fd_array; member 7528 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog() 8356 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_ksym_func_btf_id() 8362 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id() 8575 zfree(&obj->fd_array); in bpf_object_post_load_cleanup()
|
| /linux-6.15/Documentation/bpf/ |
| H A D | linux-notes.rst | 28 Linux uses an fd_array to store maps associated with a BPF program. Thus,
|
| /linux-6.15/fs/ |
| H A D | file.c | 390 new_fdt->fd = &newf->fd_array[0]; in dup_fd() 520 .fd = &init_files.fd_array[0],
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | bpf.h | 1568 __aligned_u64 fd_array; /* array of FDs */ member
|
| /linux-6.15/include/uapi/linux/ |
| H A D | bpf.h | 1568 __aligned_u64 fd_array; /* array of FDs */ member
|
| /linux-6.15/drivers/infiniband/core/ |
| H A D | uverbs_cmd.c | 236 int *fd_array; in ib_init_ucontext() local 262 fd_array = uverbs_attr_get_alloced_ptr(attrs, in ib_init_ucontext() 264 ret = ib_get_ucaps(fd_array, fd_count, &ucontext->enabled_caps); in ib_init_ucontext()
|
| /linux-6.15/kernel/bpf/ |
| H A D | verifier.c | 3062 if (bpfptr_is_null(env->fd_array)) { in __find_kfunc_desc_btf() 3067 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array, in __find_kfunc_desc_btf() 20150 if (bpfptr_is_null(env->fd_array)) { in resolve_pseudo_ldimm64() 20154 if (copy_from_bpfptr_offset(&fd, env->fd_array, in resolve_pseudo_ldimm64() 23580 env->fd_array = make_bpfptr(attr->fd_array, uattr.is_kernel); in process_fd_array() 23597 if (copy_from_bpfptr_offset(&fd, env->fd_array, i * size, size)) in process_fd_array()
|