path: root/src/include/liburing/io_uring.h
AgeCommit message (Collapse)Author
2019-11-06Add test case for IORING_SETUP_CQ_NODROPcqring-nodropJens Axboe
Tests overflows without CQ_NODROP, and correct behavior on a ring setup with CQ_NODROP. The latter backlogs events that otherwise would have been dropped, and returns -EBUSY to an application trying to submit new IO with a backlog pending. Signed-off-by: Jens Axboe <>
2019-10-29Add IORING_OP_ASYNC_CANCEL and prep helperJens Axboe
Signed-off-by: Jens Axboe <>
2019-10-17Sync with kernel io_uring.h headerJens Axboe
Signed-off-by: Jens Axboe <>
2019-10-16Add IORING_OP_TIMEOUT_REMOVEJens Axboe
Add the command opcode, and add two test cases for it. Signed-off-by: Jens Axboe <>
2019-10-15Add test case for absolute timeoutsJens Axboe
Signed-off-by: Jens Axboe <>
2019-10-04io_uring.h: add IORING_SETUP_CQSIZEJens Axboe
Signed-off-by: Jens Axboe <>
2019-10-03Add test/file-registerJens Axboe
Tests both existing functionality, but also the new sparse maps, update/remove/add functionality. Signed-off-by: Jens Axboe <>
2019-09-25io_uring.h: sync with kernel headerJens Axboe
Was just missing the sqe->timeout_flags, which are (as of yet) totally unused. Signed-off-by: Jens Axboe <>
2019-09-20Add TIMEOUT supportJens Axboe
Add support for the current TIMEOUT variant. This allows passing in a timeout and event count, first of which will trigger the completion of the timeout command. If the timeout is hit, the command completes with cqe->res == -ETIME. If the asked number of events complete first, the command completes with cqe->res == 0. test/timeout.c tests a variety of timeout conditions. Signed-off-by: Jens Axboe <>
2019-09-19Remove TIMEOUT codeJens Axboe
We'll rework it for the final version, kill the early version test case and liburing addition. This reverts commits: efb39e105afdb4dd5c0f1e964720cfa3cdcceb18 e4269d2c10586c03786df24d6382da99a956f03c 4652762d5be96e08a0ff8194de1e6f6d8127cee5 f102231b0fdbfe8587efda0b24c79a69ee4d8ba7 Signed-off-by: Jens Axboe <>
2019-09-17Add IORING_OP_TIMEOUT opcodeJens Axboe
And associated command prep helper. Signed-off-by: Jens Axboe <>
2019-09-06Sync io_uring.h with the kernelJens Axboe
This brings in the features flags. Signed-off-by: Jens Axboe <>
2019-07-24src/Makefile: keep private headers in <liburing/*.h>Stefan Hajnoczi
It is not possible to install barrier.h and compat.h into the top-level /usr/include directly since they are likely to conflict with other software. io_uring.h could be confused with the system's kernel header file. Put liburing headers into <liburing/*.h> so there is no chance of conflicts or confusion. Existing applications continue to build successfully since the location of <liburing.h> is unchanged. In-tree examples and tests require modification because src/liburing.h is moved to src/include/liburing.h. Signed-off-by: Stefan Hajnoczi <> Signed-off-by: Jens Axboe <>