| ... | @@ -6587,7 +6587,7 @@ pub const IORING_REGISTER = enum(u32) { | ... | @@ -6587,7 +6587,7 @@ pub const IORING_REGISTER = enum(u32) { |
| 6587 | | 6587 | |
| 6588 | // register/unregister io_uring fd with the ring | 6588 | // register/unregister io_uring fd with the ring |
| 6589 | REGISTER_RING_FDS, | 6589 | REGISTER_RING_FDS, |
| 6590 | NREGISTER_RING_FDS, | 6590 | UNREGISTER_RING_FDS, |
| 6591 | | 6591 | |
| 6592 | // register ring based provide buffer group | 6592 | // register ring based provide buffer group |
| 6593 | REGISTER_PBUF_RING, | 6593 | REGISTER_PBUF_RING, |
| ... | @@ -6599,8 +6599,31 @@ pub const IORING_REGISTER = enum(u32) { | ... | @@ -6599,8 +6599,31 @@ pub const IORING_REGISTER = enum(u32) { |
| 6599 | // register a range of fixed file slots for automatic slot allocation | 6599 | // register a range of fixed file slots for automatic slot allocation |
| 6600 | REGISTER_FILE_ALLOC_RANGE, | 6600 | REGISTER_FILE_ALLOC_RANGE, |
| 6601 | | 6601 | |
| | 6602 | // return status information for a buffer group |
| | 6603 | REGISTER_PBUF_STATUS, |
| | 6604 | |
| | 6605 | // set/clear busy poll settings |
| | 6606 | REGISTER_NAPI, |
| | 6607 | UNREGISTER_NAPI, |
| | 6608 | |
| | 6609 | REGISTER_CLOCK, |
| | 6610 | |
| | 6611 | // clone registered buffers from source ring to current ring |
| | 6612 | REGISTER_CLONE_BUFFERS, |
| | 6613 | |
| | 6614 | // send MSG_RING without having a ring |
| | 6615 | REGISTER_SEND_MSG_RING, |
| | 6616 | |
| | 6617 | // register a netdev hw rx queue for zerocopy |
| | 6618 | REGISTER_ZCRX_IFQ, |
| | 6619 | |
| | 6620 | // resize CQ ring |
| | 6621 | REGISTER_RESIZE_RINGS, |
| | 6622 | |
| | 6623 | REGISTER_MEM_REGION, |
| | 6624 | |
| 6602 | // flag added to the opcode to use a registered ring fd | 6625 | // flag added to the opcode to use a registered ring fd |
| 6603 | IORING_REGISTER_USE_REGISTERED_RING = 1 << 31, | 6626 | REGISTER_USE_REGISTERED_RING = 1 << 31, |
| 6604 | | 6627 | |
| 6605 | _, | 6628 | _, |
| 6606 | }; | 6629 | }; |
| ... | @@ -6657,6 +6680,13 @@ pub const io_uring_notification_register = extern struct { | ... | @@ -6657,6 +6680,13 @@ pub const io_uring_notification_register = extern struct { |
| 6657 | resv3: u64, | 6680 | resv3: u64, |
| 6658 | }; | 6681 | }; |
| 6659 | | 6682 | |
| | 6683 | pub const io_uring_napi = extern struct { |
| | 6684 | busy_poll_to: u32, |
| | 6685 | prefer_busy_poll: u8, |
| | 6686 | _pad: [3]u8, |
| | 6687 | resv: u64, |
| | 6688 | }; |
| | 6689 | |
| 6660 | /// Skip updating fd indexes set to this value in the fd table */ | 6690 | /// Skip updating fd indexes set to this value in the fd table */ |
| 6661 | pub const IORING_REGISTER_FILES_SKIP = -2; | 6691 | pub const IORING_REGISTER_FILES_SKIP = -2; |
| 6662 | | 6692 | |