diff options
author | Christoph Hellwig <hch@lst.de> | 2018-07-16 09:08:20 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-08-06 10:24:33 +0200 |
commit | bfe4037e722ec672c9dafd5730d9132afeeb76e9 (patch) | |
tree | 3c4cda487ec44b9fdb91eebebd5e2f0e9cbc665b /arch | |
parent | 9018ccc453af063d16b3b6b5dfa2ad0635390371 (diff) |
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 'arch')
0 files changed, 0 insertions, 0 deletions