Skip to content

Commit

Permalink
Use -1 as correct offset for io_uring_prep_write_fixed/io_uring_prep_…
Browse files Browse the repository at this point in the history
…read_fixed.
  • Loading branch information
microcai authored and chriskohlhoff committed Dec 2, 2024
1 parent a12ecff commit 4c034a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asio/include/asio/detail/io_uring_descriptor_read_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class io_uring_descriptor_read_op_base : public io_uring_operation
{
::io_uring_prep_read_fixed(sqe, o->descriptor_,
o->bufs_.buffers()->iov_base, o->bufs_.buffers()->iov_len,
0, o->bufs_.registered_id().native_handle());
-1, o->bufs_.registered_id().native_handle());
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/detail/io_uring_descriptor_write_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class io_uring_descriptor_write_op_base : public io_uring_operation
{
::io_uring_prep_write_fixed(sqe, o->descriptor_,
o->bufs_.buffers()->iov_base, o->bufs_.buffers()->iov_len,
0, o->bufs_.registered_id().native_handle());
-1, o->bufs_.registered_id().native_handle());
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/detail/io_uring_socket_recv_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class io_uring_socket_recv_op_base : public io_uring_operation
{
::io_uring_prep_read_fixed(sqe, o->socket_,
o->bufs_.buffers()->iov_base, o->bufs_.buffers()->iov_len,
0, o->bufs_.registered_id().native_handle());
-1, o->bufs_.registered_id().native_handle());
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion asio/include/asio/detail/io_uring_socket_send_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class io_uring_socket_send_op_base : public io_uring_operation
{
::io_uring_prep_write_fixed(sqe, o->socket_,
o->bufs_.buffers()->iov_base, o->bufs_.buffers()->iov_len,
0, o->bufs_.registered_id().native_handle());
-1, o->bufs_.registered_id().native_handle());
}
else
{
Expand Down

0 comments on commit 4c034a5

Please sign in to comment.