Skip to content

Conversation

sunfishcode
Copy link
Member

  • Rename IoringSetupFlags's SETUP_SINGLE_ISSUER and SETUP_DEFER_TASKRUN to SINGLE_ISSUER and DEFER_TASKRUN, because the SETUP_ is omitted in the other IoringSetupFlags flags.

  • Split IoringRecvsendFlags into IoringSendFlags and IoringRecvFlags, and add the new ZC_REPORT_USAGE send flag.

  • Add a public re-export of the new IORING_NOTIF_USAGE_ZC_COPIED flag. In theory we could convert cqe.res into a union and use a bitflags type for IORING_NOTIF_USAGE_ZC_COPIED, though my rough guess is that that's not worth it until it gets more complex.

 - Rename `IoringSetupFlags`'s `SETUP_SINGLE_ISSUER` and `SETUP_DEFER_TASKRUN`
   to `SINGLE_ISSUER` and `DEFER_TASKRUN`, because the `SETUP_` is omitted in
   the other `IoringSetupFlags` flags.

 - Split `IoringRecvsendFlags` into `IoringSendFlags` and
   `IoringRecvFlags`, and add the new `ZC_REPORT_USAGE` send flag.

 - Add a public re-export of the new `IORING_NOTIF_USAGE_ZC_COPIED`
   flag. In theory we could convert `cqe.res` into a union and use a
   bitflags type for `IORING_NOTIF_USAGE_ZC_COPIED`, though my rough
   guess is that that's not worth it until it gets more complex.
@sunfishcode sunfishcode merged commit b184b83 into main Mar 3, 2023
@sunfishcode sunfishcode deleted the sunfishcode/io-uring-cleanups branch March 3, 2023 16:16
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.

1 participant