fn get_sqe(self: *IO_Uring) !*linux.io_uring_sqe
[src]
Returns a pointer to a vacant SQE, or an error if the submission queue is full. We follow the implementation (and atomics) of liburing’s io_uring_get_sqe()
exactly. However, instead of a null we return an error to force safe handling. Any situation where the submission queue is full tends more towards a control flow error, and the null return in liburing is more a C idiom than anything else, for lack of a better alternative. In Zig, we have first-class error handling… so let’s use it. Matches the implementation of io_uring_get_sqe() in liburing.