| ... | @@ -319,13 +319,13 @@ pub const IO_Uring = struct { | ... | @@ -319,13 +319,13 @@ pub const IO_Uring = struct { |
| 319 | sqe.off = @ptrToInt(addrlen); // `addr2` is a newer union member that maps to `off`. | 319 | sqe.off = @ptrToInt(addrlen); // `addr2` is a newer union member that maps to `off`. |
| 320 | sqe.addr = @ptrToInt(addr); | 320 | sqe.addr = @ptrToInt(addr); |
| 321 | sqe.user_data = user_data; | 321 | sqe.user_data = user_data; |
| 322 | sqe.opflags = accept_flags; | 322 | sqe.rw_flags = accept_flags; |
| 323 | return sqe; | 323 | return sqe; |
| 324 | } | 324 | } |
| 325 | | 325 | |
| 326 | /// Queues (but does not submit) an SQE to perform an `fsync(2)`. | 326 | /// Queues (but does not submit) an SQE to perform an `fsync(2)`. |
| 327 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. | 327 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. |
| 328 | /// For example, for `fdatasync()` you can set `IORING_FSYNC_DATASYNC` in the SQE's `opflags`. | 328 | /// For example, for `fdatasync()` you can set `IORING_FSYNC_DATASYNC` in the SQE's `rw_flags`. |
| 329 | /// N.B. While SQEs are initiated in the order in which they appear in the submission queue, | 329 | /// N.B. While SQEs are initiated in the order in which they appear in the submission queue, |
| 330 | /// operations execute in parallel and completions are unordered. Therefore, an application that | 330 | /// operations execute in parallel and completions are unordered. Therefore, an application that |
| 331 | /// submits a write followed by an fsync in the submission queue cannot expect the fsync to | 331 | /// submits a write followed by an fsync in the submission queue cannot expect the fsync to |
| ... | @@ -392,7 +392,7 @@ pub const IO_Uring = struct { | ... | @@ -392,7 +392,7 @@ pub const IO_Uring = struct { |
| 392 | | 392 | |
| 393 | /// Queues (but does not submit) an SQE to perform a `preadv()`. | 393 | /// Queues (but does not submit) an SQE to perform a `preadv()`. |
| 394 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. | 394 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. |
| 395 | /// For example, if you want to do a `preadv2()` then set `opflags` on the returned SQE. | 395 | /// For example, if you want to do a `preadv2()` then set `rw_flags` on the returned SQE. |
| 396 | /// See https://linux.die.net/man/2/preadv. | 396 | /// See https://linux.die.net/man/2/preadv. |
| 397 | pub fn queue_readv( | 397 | pub fn queue_readv( |
| 398 | self: *IO_Uring, | 398 | self: *IO_Uring, |
| ... | @@ -413,7 +413,7 @@ pub const IO_Uring = struct { | ... | @@ -413,7 +413,7 @@ pub const IO_Uring = struct { |
| 413 | | 413 | |
| 414 | /// Queues (but does not submit) an SQE to perform a `pwritev()`. | 414 | /// Queues (but does not submit) an SQE to perform a `pwritev()`. |
| 415 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. | 415 | /// Returns a pointer to the SQE so that you can further modify the SQE for advanced use cases. |
| 416 | /// For example, if you want to do a `pwritev2()` then set `opflags` on the returned SQE. | 416 | /// For example, if you want to do a `pwritev2()` then set `rw_flags` on the returned SQE. |
| 417 | /// See https://linux.die.net/man/2/pwritev. | 417 | /// See https://linux.die.net/man/2/pwritev. |
| 418 | pub fn queue_writev( | 418 | pub fn queue_writev( |
| 419 | self: *IO_Uring, | 419 | self: *IO_Uring, |
| ... | @@ -636,7 +636,7 @@ test "queue_nop" { | ... | @@ -636,7 +636,7 @@ test "queue_nop" { |
| 636 | .off = 0, | 636 | .off = 0, |
| 637 | .addr = 0, | 637 | .addr = 0, |
| 638 | .len = 0, | 638 | .len = 0, |
| 639 | .opflags = 0, | 639 | .rw_flags = 0, |
| 640 | .user_data = @intCast(u64, 0xaaaaaaaa), | 640 | .user_data = @intCast(u64, 0xaaaaaaaa), |
| 641 | .buf_index = 0, | 641 | .buf_index = 0, |
| 642 | .personality = 0, | 642 | .personality = 0, |