Lines Matching defs:sock
19 #include <net/sock.h>
31 * We need both a handshake_req -> sock mapping, and a sock ->
34 * To avoid adding another pointer field to struct sock, net/handshake
35 * maintains a hash table, indexed by the memory address of @sock, to
60 struct handshake_req *handshake_req_hash_lookup(struct sock *sk)
86 static void handshake_sk_destruct(struct sock *sk)
88 void (*sk_destruct)(struct sock *sk);
202 * @sock: open socket on which to perform the handshake
223 int handshake_req_submit(struct socket *sock, struct handshake_req *req,
230 if (!sock || !req || !sock->file) {
235 req->hr_sk = sock->sk;
289 struct sock *sk = req->hr_sk;
313 bool handshake_req_cancel(struct sock *sk)