Repository navigation
ntex-io-uring v1.0.0
Changes
-
opcodes initialize the submission entry in place.
X::new(&mut entry, ..)
resets the entry and writes required fields, setters update it directly,build()
is removed. Entries can be reused for another operation.newtakes
&mut impl squeue::EntryMarkerand resets all 128 bytes of anEntry128 -
SubmissionQueue::push()takes a closure that initializes the queue slot
in place with an opcode. If the queue is full it returnsPushError<F>,
which holds the closure.push_multiple(),push_unchecked()and
try_push_inline()are removed,has_space()takes no arguments -
EntryMarkerrequiresAsMut<Entry> -
buf_group()onRead,Readv,RecvandRecvMsgis replaced by
buffer_select(), which also sets theBUFFER_SELECTflag -
MsgRingSendFd::opcode_flags()ORs flags like other flag setters -
squeue::Entry::get_opcode()returnsu8 -
squeue::EntryandEntry128by-value buildersflags(),user_data()and
personality()are replaced by in-placeset_flags(),set_user_data()and
set_personality(),clear_flags()takes&mut self. Addedget_flags()
andget_personality() -
sys bindings regenerated from Linux 7.2 uapi headers
-
EpollCtl::new()takes a regularepfd, the kernel doesn't support fixed epoll files -
FadviseandMadvisepass lengths larger thanu32in the 64-bit field
instead of truncating them -
WaitId::infop()takes*mut siginfo_t -
Submitter::register_ifq()takes&mut io_uring_zcrx_ifq_reg, the kernel writes
results back into it -
Remove deprecated
IoUring::submission_shared() -
Document all opcode constructors and setters, fix opcode docs
-
Fix
opcode::ReadMulticlearingFIXED_FILEfor fixed file descriptors -
Timeout,LinkTimeoutandTimeoutUpdateflags()OR flags,PollAdd::multi()
keeps other poll flags -
MsgRingDataandMsgRingSendFdaccept a fixed (registered) ring fd -
CancelBuildercan match by opcode and combine user_data, fd and opcode
criteria:CancelBuilder::opcode(),match_user_data(),match_fd(),match_opcode() -
Add
Builder::setup_sqe_mixed(),Parameters::is_setup_sqe_mixed()and
SubmissionQueue::push128()for 128-byte entries in a 64-byte queue, add
opcode::Nop128andopcode::UringCmd128 -
Add missing op setters:
Nopinject_result(),file(),buf_index(),
task_work(),cqe32();PollAdd::level();nanos()and
TimeoutFlags::IMMEDIATE_ARGfor timeouts;ioprio()forAccept,
AcceptMulti,RecvMulti,SendBundle,RecvBundle,RecvMultiBundle;
AcceptMulti::addr();len()forRecvBundleandRecvMultiBundle;
total_len()forRecvMultiandRecvMultiBundle;buf_index()forSend,
RecvandSendMsgZc;vectorized()forSendandSendZc;pi_attr()for
read/write ops;flags()forUringCmd16andUringCmd80. Exporttypes::io_uring_attr_pi