summaryrefslogtreecommitdiff
path: root/include/net/inet_common.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2023-05-17 22:16:14 +0300
committerJakub Kicinski <kuba@kernel.org>2023-05-19 06:06:31 +0300
commit711bdd5141d81ab21dbe0a533024d594210d5ba4 (patch)
tree8af2f5df290e8796698fe9b978a9b8717647dd27 /include/net/inet_common.h
parentbf9233f913eb17d784ffbfff4ff55bc0772f3063 (diff)
downloadlinux-711bdd5141d81ab21dbe0a533024d594210d5ba4.tar.xz
inet: factor out locked section of inet_accept() in a new helper
No functional changes intended. The new helper will be used by the MPTCP protocol in the next patch to avoid duplicating a few LoC. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/inet_common.h')
-rw-r--r--include/net/inet_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_common.h b/include/net/inet_common.h
index cec453c18f1d..77f4b0ef5b92 100644
--- a/include/net/inet_common.h
+++ b/include/net/inet_common.h
@@ -31,6 +31,8 @@ int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
int addr_len, int flags);
int inet_accept(struct socket *sock, struct socket *newsock, int flags,
bool kern);
+void __inet_accept(struct socket *sock, struct socket *newsock,
+ struct sock *newsk);
int inet_send_prepare(struct sock *sk);
int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size);
ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,