History

aio: implement IOCB_CMD_POLL

Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT this interface always works in one shot mode, that is once the iocb is completed, it will have to be resubmitted.

Christoph Hellwig committed 8 years ago

Commit 2c14fa81 parent 888933f2 files · +135 −5Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/aio_abi.h+2−4
@@ -39,10 +39,8 @@ enum { · 38 unmodified lines
39 IOCB_CMD_PWRITE = 1,39 IOCB_CMD_PWRITE = 1,
40 IOCB_CMD_FSYNC = 2,40 IOCB_CMD_FSYNC = 2,
41 IOCB_CMD_FDSYNC = 3,41 IOCB_CMD_FDSYNC = 3,
42 /* These two are experimental.42 /* 4 was the experimental IOCB_CMD_PREADX */
43 * IOCB_CMD_PREADX = 4,43 IOCB_CMD_POLL = 5,
44 * IOCB_CMD_POLL = 5,
45 */
46 IOCB_CMD_NOOP = 6,44 IOCB_CMD_NOOP = 6,
47 IOCB_CMD_PREADV = 7,45 IOCB_CMD_PREADV = 7,
48 IOCB_CMD_PWRITEV = 8,46 IOCB_CMD_PWRITEV = 8,