Searched refs:infd (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/arch/arm/vdso/ |
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.1.9/tools/io_uring/ |
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.1.9/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 574 static int copyfd_io_poll(int infd, int peerfd, int outfd, bool *in_closed_after_out) in copyfd_io_poll() argument 643 wlen = read(infd, wbuf, sizeof(wbuf)); in copyfd_io_poll() 701 static int do_recvfile(int infd, int outfd) in do_recvfile() argument 708 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile() 720 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument 722 char *inbuf = mmap(NULL, size, PROT_READ, MAP_SHARED, infd, 0); in do_mmap() 775 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument 780 r = sendfile(outfd, infd, NULL, count); in do_sendfile() 792 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument 802 err = do_mmap(infd, peerfd, size); in copyfd_io_mmap() [all …]
|
/linux-6.1.9/tools/firmware/ |
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()
|