Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use -1 as correct offset for io_uring_prep_write_fixed/io_uring_prep_read_fixed #1559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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