Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

submit

Public Function
std.os.linux.IoUring.submit
pub fn submit(self: *IoUring) !u32

Submits the SQEs acquired via get_sqe() to the kernel. You can call this once after you have called get_sqe() multiple times to setup multiple I/O requests. Returns the number of SQEs submitted, if not used alongside IORING_SETUP_SQPOLL. If the io_uring instance is uses IORING_SETUP_SQPOLL, the value returned on success is not guaranteed to match the amount of actually submitted sqes during this call. A value higher or lower, including 0, may be returned. Matches the implementation of io_uring_submit() in liburing.

Params

File

os/linux/IoUring.zig:157
157
158
159
pub fn submit(self: *IoUring) !u32 {
    return self.submit_and_wait(0);
}