| ... | ... | @@ -144,7 +144,10 @@ pub const IO_Uring = struct { |
| 144 | 144 | |
| 145 | 145 | /// Submits the SQEs acquired via get_sqe() to the kernel. You can call this once after you have |
| 146 | 146 | /// called get_sqe() multiple times to setup multiple I/O requests. |
| 147 | | /// Returns the number of SQEs submitted. |
| 147 | /// Returns the number of SQEs submitted, if not used alongside IORING_SETUP_SQPOLL. |
| 148 | /// If the io_uring instance is uses IORING_SETUP_SQPOLL, the value returned on success is not |
| 149 | /// guaranteed to match the amount of actually submitted sqes during this call. A value higher |
| 150 | /// or lower, including 0, may be returned. |
| 148 | 151 | /// Matches the implementation of io_uring_submit() in liburing. |
| 149 | 152 | pub fn submit(self: *IO_Uring) !u32 { |
| 150 | 153 | return self.submit_and_wait(0); |