diff options
author | Christoph Hellwig <hch@lst.de> | 2018-07-16 10:08:20 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-08-06 11:24:33 +0300 |
commit | bfe4037e722ec672c9dafd5730d9132afeeb76e9 (patch) | |
tree | 3c4cda487ec44b9fdb91eebebd5e2f0e9cbc665b /include/uapi | |
parent | 9018ccc453af063d16b3b6b5dfa2ad0635390371 (diff) | |
download | linux-bfe4037e722ec672c9dafd5730d9132afeeb76e9.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>
Tested-by: Avi Kivity <avi@scylladb.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/aio_abi.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/uapi/linux/aio_abi.h b/include/uapi/linux/aio_abi.h index d4593a6062ef..ce43d340f010 100644 --- a/include/uapi/linux/aio_abi.h +++ b/include/uapi/linux/aio_abi.h @@ -38,10 +38,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, |