Function sendmsg_zc [src]

Queues (but does not submit) an SQE to perform an async zerocopy sendmsg(2). Returns a pointer to the SQE. Available since 6.1

Prototype

pub fn sendmsg_zc( self: *IoUring, user_data: u64, fd: posix.fd_t, msg: *const posix.msghdr_const, flags: u32, ) !*linux.io_uring_sqe

Parameters

self: *IoUringuser_data: u64fd: posix.fd_tmsg: *const posix.msghdr_constflags: u32

Source

pub fn sendmsg_zc( self: *IoUring, user_data: u64, fd: posix.fd_t, msg: *const posix.msghdr_const, flags: u32, ) !*linux.io_uring_sqe { const sqe = try self.get_sqe(); sqe.prep_sendmsg_zc(fd, msg, flags); sqe.user_data = user_data; return sqe; }