Home
last modified time | relevance | path

Searched refs:fd_array (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/tools/testing/selftests/net/
Dbind_bhash.c28 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.1.9/tools/perf/tests/shell/
Dtest_intel_pt.sh184 fd_array[fd] = fd
194 if (fd in fd_array) {
208 if (fd in fd_array) {
209 if (fd_to in fd_array) {
222 print "Checking " length(fd_array) " fds"
223 for (fd in fd_array) {
/linux-6.1.9/tools/lib/bpf/
Dbpf_gen_internal.h48 int fd_array; member
Dskel_internal.h311 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()
Dgen_loader.c47 return gen->fd_array + index * sizeof(int); in blob_fd_array_off()
118 gen->fd_array = add_data(gen, NULL, MAX_FD_ARRAY_SZ * sizeof(int)); in bpf_gen__init()
194 return (cur - gen->fd_array) / sizeof(int); in add_kfunc_btf_fd()
991 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), gen->fd_array); in bpf_gen__prog_load()
Dbpf.h83 const int *fd_array; member
Dbpf.c235 const size_t attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_prog_load()
310 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL)); in bpf_prog_load()
Dlibbpf.c659 int *fd_array; member
6767 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog()
7507 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_ksym_func_btf_id()
7513 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id()
7700 zfree(&obj->fd_array); in bpf_object_load()
/linux-6.1.9/include/linux/
Dfdtable.h67 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member
Dbpf_verifier.h545 bpfptr_t fd_array; member
/linux-6.1.9/fs/
Dfile.c339 new_fdt->fd = &newf->fd_array[0]; in dup_fd()
473 .fd = &init_files.fd_array[0],
/linux-6.1.9/tools/include/uapi/linux/
Dbpf.h1390 __aligned_u64 fd_array; /* array of FDs */ member
/linux-6.1.9/include/uapi/linux/
Dbpf.h1390 __aligned_u64 fd_array; /* array of FDs */ member
/linux-6.1.9/kernel/bpf/
Dverifier.c1953 if (bpfptr_is_null(env->fd_array)) { in __find_kfunc_desc_btf()
1958 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array, in __find_kfunc_desc_btf()
12846 if (bpfptr_is_null(env->fd_array)) { in resolve_pseudo_ldimm64()
12850 if (copy_from_bpfptr_offset(&fd, env->fd_array, in resolve_pseudo_ldimm64()
15230 env->fd_array = make_bpfptr(attr->fd_array, uattr.is_kernel); in bpf_check()