The rapid growth of io_uring
The rapid growth of io_uring
Posted Nov 3, 2023 12:07 UTC (Fri) by farnz (subscriber, #17727)In reply to: The rapid growth of io_uring by leo60228
Parent article: The rapid growth of io_uring
If you're building your own equivalent of this trick in io_uring, you can have multiple splices in flight at once; you'd be using two linked SQEs, one of which splices input into the pipe, and the other of which splices the pipe into the output. Offset tracking is in your hands at this point.
The kernel's trick is simply to create the pipe for you if you don't provide one, and you're doing sync I/O from a file to something not-a-file.
