summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-09-05 11:14:22 -0600
committerJens Axboe <axboe@kernel.dk>2020-11-23 09:15:15 -0700
commit36f4fa6886a81266d7c82b1c90a65205e73a7c85 (patch)
tree4701e9c5a955a6f754aaf058a5a721e9ddb1239e /include
parentb713c195d59332277a31a59c91f755e53b5b302b (diff)
downloadlinux-stable-36f4fa6886a81266d7c82b1c90a65205e73a7c85.tar.gz
linux-stable-36f4fa6886a81266d7c82b1c90a65205e73a7c85.tar.bz2
linux-stable-36f4fa6886a81266d7c82b1c90a65205e73a7c85.zip
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')
-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,