Function socket_direct_alloc [src]

Prepares a socket creation request for registered file, index chosen by kernel (file index alloc). File index will be returned in CQE res field. Available since 5.19

Prototype

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

Parameters

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

Source

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