aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/aio_abi.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-03-20 16:34:36 +0100
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commit2c14fa838cbefc23cf1c73ca167ed85b274b2913 (patch)
tree23ba97edd9f681ea97850b7c8f56f9048c8ff397 /include/uapi/linux/aio_abi.h
parentaio: simplify cancellation (diff)
downloadlinux-dev-2c14fa838cbefc23cf1c73ca167ed85b274b2913.tar.xz
linux-dev-2c14fa838cbefc23cf1c73ca167ed85b274b2913.zip
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. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/aio_abi.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h
index 2c0a3415beee..ed0185945bb2 100644
--- a/include/uapi/linux/aio_abi.h
+++ b/include/uapi/linux/aio_abi.h
@@ -39,10 +39,8 @@ enum {
IOCB_CMD_PWRITE = 1,
IOCB_CMD_FSYNC = 2,
IOCB_CMD_FDSYNC = 3,
- /* These two are experimental.
- * IOCB_CMD_PREADX = 4,
- * IOCB_CMD_POLL = 5,
- */
+ /* 4 was the experimental IOCB_CMD_PREADX */
+ IOCB_CMD_POLL = 5,
IOCB_CMD_NOOP = 6,
IOCB_CMD_PREADV = 7,
IOCB_CMD_PWRITEV = 8,