Home
last modified time | relevance | path

Searched refs:infd (Results 1 - 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c340 static int copyfd_io_poll(int infd, int peerfd, int outfd) in copyfd_io_poll() argument
395 wlen = read(infd, wbuf, sizeof(wbuf)); in copyfd_io_poll()
446 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
453 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile()
465 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument
467 char *inbuf = mmap(NULL, size, PROT_READ, MAP_SHARED, infd, 0); in do_mmap()
520 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument
525 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
537 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument
547 err = do_mmap(infd, peerf in copyfd_io_mmap()
561 copyfd_io_sendfile(int infd, int peerfd, int outfd, unsigned int size) copyfd_io_sendfile() argument
582 copyfd_io(int infd, int peerfd, int outfd) copyfd_io() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/vdso/
H A Dvdsomunge.c127 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()
/kernel/linux/linux-6.6/arch/arm/vdso/
H A Dvdsomunge.c127 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()
/kernel/linux/linux-5.10/tools/io_uring/
H A Dio_uring-cp.c25 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()
238 infd = open(argv[1], O_RDONLY); in main()
239 if (infd < 0) { in main()
251 if (get_file_size(infd, &insize)) in main()
256 close(infd); in main()
/kernel/linux/linux-5.10/tools/firmware/
H A Dihex2fw.c74 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()
/kernel/linux/linux-6.6/tools/firmware/
H A Dihex2fw.c74 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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c354 int infd, struct wstate *winfo) in sock_connect_mptcp()
381 winfo->total_len = winfo->len = read(infd, winfo->buf, in sock_connect_mptcp()
616 static int copyfd_io_poll(int infd, int peerfd, int outfd, in copyfd_io_poll() argument
685 winfo->len = read(infd, winfo->buf, sizeof(winfo->buf)); in copyfd_io_poll()
743 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
750 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile()
777 static int do_mmap(int infd, int outfd, unsigned int size, in do_mmap() argument
780 char *inbuf = mmap(NULL, size, PROT_READ, MAP_SHARED, infd, 0); in do_mmap()
837 static int do_sendfile(int infd, int outfd, unsigned int count, in do_sendfile() argument
850 r = sendfile(outfd, infd, NUL in do_sendfile()
351 sock_connect_mptcp(const char * const remoteaddr, const char * const port, int proto, struct addrinfo **peer, int infd, struct wstate *winfo) sock_connect_mptcp() argument
862 copyfd_io_mmap(int infd, int peerfd, int outfd, unsigned int size, bool *in_closed_after_out, struct wstate *winfo) copyfd_io_mmap() argument
888 copyfd_io_sendfile(int infd, int peerfd, int outfd, unsigned int size, bool *in_closed_after_out, struct wstate *winfo) copyfd_io_sendfile() argument
913 copyfd_io(int infd, int peerfd, int outfd, bool close_peerfd, struct wstate *winfo) copyfd_io() argument
[all...]
/kernel/liteos_a/syscall/
H A Dfs_syscall.c1740 ssize_t SysSendFile(int outfd, int infd, off_t *offset, size_t count) in SysSendFile() argument
1752 infd = GetAssociatedSystemFd(infd); in SysSendFile()
1754 ret = sendfile(outfd, infd, (offset ? (&offsetRet) : NULL), count); in SysSendFile()
H A Dlos_syscall.h299 extern ssize_t SysSendFile(int outfd, int infd, off_t *offset, size_t count);

Completed in 15 milliseconds