diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-09-05 19:13:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-23 17:15:15 +0100 |
commit | b713c195d59332277a31a59c91f755e53b5b302b (patch) | |
tree | aff5f0769ec30749c168bcc547fa2b27ca8c86ec /include | |
parent | io_uring: allow SQPOLL with CAP_SYS_NICE privileges (diff) | |
download | linux-b713c195d59332277a31a59c91f755e53b5b302b.tar.xz linux-b713c195d59332277a31a59c91f755e53b5b302b.zip |
net: provide __sys_shutdown_sock() that takes a socket
No functional changes in this patch, needed to provide io_uring support
for shutdown(2).
Cc: netdev@vger.kernel.org
Cc: David S. Miller <davem@davemloft.net>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index e9cb30d8cbfb..385894b4a8bb 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -436,6 +436,7 @@ extern int __sys_getpeername(int fd, struct sockaddr __user *usockaddr, int __user *usockaddr_len); extern int __sys_socketpair(int family, int type, int protocol, int __user *usockvec); +extern int __sys_shutdown_sock(struct socket *sock, int how); extern int __sys_shutdown(int fd, int how); extern struct ns_common *get_net_ns(struct ns_common *ns); |