aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/socket.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-09-05 11:13:35 -0600
committerJens Axboe <axboe@kernel.dk>2020-11-23 09:15:15 -0700
commitb713c195d59332277a31a59c91f755e53b5b302b (patch)
treeaff5f0769ec30749c168bcc547fa2b27ca8c86ec /include/linux/socket.h
parentio_uring: allow SQPOLL with CAP_SYS_NICE privileges (diff)
downloadwireguard-linux-b713c195d59332277a31a59c91f755e53b5b302b.tar.xz
wireguard-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/linux/socket.h')
-rw-r--r--include/linux/socket.h1
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);