summaryrefslogtreecommitdiff
path: root/include/uapi/linux/aio_abi.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-03-20 18:34:36 +0300
committerChristoph Hellwig <hch@lst.de>2018-05-26 10:16:44 +0300
commit2c14fa838cbefc23cf1c73ca167ed85b274b2913 (patch)
tree23ba97edd9f681ea97850b7c8f56f9048c8ff397 /include/uapi/linux/aio_abi.h
parent888933f8fdf06ecbd5a476b312a37176ab29fb5e (diff)
downloadlinux-2c14fa838cbefc23cf1c73ca167ed85b274b2913.tar.xz
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 'include/uapi/linux/aio_abi.h')
-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,