tokio-rs / io-uring

The `io_uring` library for Rust
Apache License 2.0
1.16k stars 129 forks source link

Support io_uring_prep_cmd_sock #293

Closed erenon closed 2 months ago

erenon commented 2 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 2 months ago

Apparently, this is implemented via UringCmd16/UringCmd80.