MCPcopy Create free account
hub / github.com/axboe/liburing / io_uring_prep_splice

Function io_uring_prep_splice

src/include/liburing.h:629–641  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

627 * Check issue #291 for more information.
628 */
629IOURINGINLINE 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
643IOURINGINLINE void io_uring_prep_tee(struct io_uring_sqe *sqe,
644 int fd_in, int fd_out,

Callers 3

do_splice_opFunction · 0.85
mainFunction · 0.85
testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected