tokio-rs / io-uring

The `io_uring` library for Rust
Apache License 2.0
1.21k stars 134 forks source link

Support io_uring_prep_cmd_sock #293

Closed erenon closed 4 months ago

erenon commented 4 months ago

Hi, thanks for the nice library! Is io_uring_prep_cmd_sock supported? If not, is there a fundamental reason it is not supported?

Use case: I'm using io_uring AcceptMulti with allocate_file_index, and I register files with register_files_sparse. Therefore I have FixedFds only, so I can't use the regular sync setsockopt/getsockopt interface, lacking a normal fd.

erenon commented 4 months ago

Apparently, this is implemented via UringCmd16/UringCmd80.