Lines Matching defs:sock
17 #include <net/sock.h>
32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx)
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx)
63 static int hash_sendmsg(struct socket *sock, struct msghdr *msg,
66 struct sock *sk = sock->sk;
179 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
182 struct sock *sk = sock->sk;
226 static int hash_accept(struct socket *sock, struct socket *newsock, int flags,
229 struct sock *sk = sock->sk;
234 struct sock *sk2;
298 static int hash_check_key(struct socket *sock)
301 struct sock *psk;
304 struct sock *sk = sock->sk;
333 static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
338 err = hash_check_key(sock);
342 return hash_sendmsg(sock, msg, size);
345 static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
350 err = hash_check_key(sock);
354 return hash_recvmsg(sock, msg, ignored, flags);
357 static int hash_accept_nokey(struct socket *sock, struct socket *newsock,
362 err = hash_check_key(sock);
366 return hash_accept(sock, newsock, flags, kern);
402 static void hash_sock_destruct(struct sock *sk)
412 static int hash_accept_parent_nokey(void *private, struct sock *sk)
439 static int hash_accept_parent(void *private, struct sock *sk)