* io_uring_prep_splice() - Either @fd_in or @fd_out must be a pipe. * * - If @fd_in refers to a pipe, @off_in is ignored and must be set to -1. * * - If @fd_in does not refer to a pipe and @off_in is -1, then @nbytes are read * from @fd_in starting from the file offset, which is incremented by the * number of bytes read. * * - If @fd_in does not refer to a pipe and @off_in is not -1, t
| 627 | * Check issue #291 for more information. |
| 628 | */ |
| 629 | IOURINGINLINE void io_uring_prep_splice(struct io_uring_sqe *sqe, |
| 630 | int fd_in, int64_t off_in, |
| 631 | int fd_out, int64_t off_out, |
| 632 | unsigned int nbytes, |
| 633 | unsigned int splice_flags) |
| 634 | LIBURING_NOEXCEPT |
| 635 | { |
| 636 | io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out, NULL, nbytes, |
| 637 | (__u64) off_out); |
| 638 | sqe->splice_off_in = (__u64) off_in; |
| 639 | sqe->splice_fd_in = fd_in; |
| 640 | sqe->splice_flags = splice_flags; |
| 641 | } |
| 642 | |
| 643 | IOURINGINLINE void io_uring_prep_tee(struct io_uring_sqe *sqe, |
| 644 | int fd_in, int fd_out, |
no outgoing calls
no test coverage detected