Function socket_direct [src]

Prepares a socket creation request for registered file at index file_index. Available since 5.19

Prototype

pub fn socket_direct( self: *IoUring, user_data: u64, domain: u32, socket_type: u32, protocol: u32, flags: u32, file_index: u32, ) !*linux.io_uring_sqe

Parameters

self: *IoUringuser_data: u64domain: u32socket_type: u32protocol: u32flags: u32file_index: u32

Source

pub fn socket_direct( self: *IoUring, user_data: u64, domain: u32, socket_type: u32, protocol: u32, flags: u32, file_index: u32, ) !*linux.io_uring_sqe { const sqe = try self.get_sqe(); sqe.prep_socket_direct(domain, socket_type, protocol, flags, file_index); sqe.user_data = user_data; return sqe; }