Searched refs:infd (Results 1 – 4 of 4) sorted by relevance
/linux-6.3-rc2/arch/arm/vdso/ |
A D | vdsomunge.c | 127 int infd; in main() local 138 infd = open(infile, O_RDONLY); in main() 139 if (infd < 0) in main() 142 if (fstat(infd, &stat) != 0) in main() 145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main() 149 close(infd); in main()
|
/linux-6.3-rc2/tools/io_uring/ |
A D | io_uring-cp.c | 25 static int infd, outfd; variable 77 io_uring_prep_readv(sqe, infd, &data->iov, 1, data->offset); in queue_prepped() 106 io_uring_prep_readv(sqe, infd, &data->iov, 1, offset); in queue_read() 261 infd = open(argv[1], O_RDONLY); in main() 262 if (infd < 0) { in main() 274 if (get_file_size(infd, &insize)) in main() 279 close(infd); in main()
|
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/ |
A D | mptcp_connect.c | 353 int infd, struct wstate *winfo) in sock_connect_mptcp() argument 742 static int do_recvfile(int infd, int outfd) in do_recvfile() argument 749 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile() 849 r = sendfile(outfd, infd, NULL, count); in do_sendfile() 872 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap() 874 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap() 897 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile() 899 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile() 929 file_size = get_infd_size(infd); in copyfd_io() 932 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, in copyfd_io() [all …]
|
/linux-6.3-rc2/tools/firmware/ |
A D | ihex2fw.c | 74 int infd, outfd; in main() local 99 infd = 0; in main() 101 infd = open(argv[optind], O_RDONLY); in main() 102 if (infd == -1) { in main() 107 if (fstat(infd, &st)) { in main() 111 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
|
Completed in 13 milliseconds