summaryrefslogtreecommitdiff
path: root/include/uapi/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-09-05 20:14:22 +0300
committerJens Axboe <axboe@kernel.dk>2020-11-23 19:15:15 +0300
commit36f4fa6886a81266d7c82b1c90a65205e73a7c85 (patch)
tree4701e9c5a955a6f754aaf058a5a721e9ddb1239e /include/uapi/linux/io_uring.h
parentb713c195d59332277a31a59c91f755e53b5b302b (diff)
downloadlinux-36f4fa6886a81266d7c82b1c90a65205e73a7c85.tar.xz
io_uring: add support for shutdown(2)
This adds support for the shutdown(2) system call, which is useful for dealing with sockets. shutdown(2) may block, so we have to punt it to async context. Suggested-by: Norman Maurer <norman.maurer@googlemail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r--include/uapi/linux/io_uring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index 98d8e06dea22..e943bf07c959 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -132,6 +132,7 @@ enum {
IORING_OP_PROVIDE_BUFFERS,
IORING_OP_REMOVE_BUFFERS,
IORING_OP_TEE,
+ IORING_OP_SHUTDOWN,
/* this goes last, obviously */
IORING_OP_LAST,