Skip to content

Conversation

@huang-jl
Copy link
Contributor

The origin requirement comes from #374.

Some device-specific commands need to set io_uring_sqe.addr to special value, such as ublk.

/// but some file/device command also need to pass an addr.
/// For example, the [ublk](https://docs.kernel.org/block/ublk.html#usage-requirements)
/// needs to set `addr` to some special value.
addr: Option<u64> = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add this for UringCmd80 as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ublk seems only need UringCmd16 for now. But for completeness, I will add for UringCmd80.

@huang-jl huang-jl force-pushed the support-addr-for-cmd branch from fa78328 to fcde1cc Compare December 15, 2025 09:42
@quininer quininer merged commit 7ec7ae9 into tokio-rs:master Dec 16, 2025
17 checks passed
@quininer
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants