Lines Matching defs:sock
26 #include <net/sock.h>
49 struct sock *sk = strp->sk;
76 struct socket *sock = strp->sk->sk_socket;
78 return sock->ops->peek_len(sock);
347 struct socket *sock = strp->sk->sk_socket;
350 if (unlikely(!sock || !sock->ops || !sock->ops->read_sock))
358 sock->ops->read_sock(strp->sk, &desc, strp_recv);
365 /* Lower sock lock held */
440 int strp_init(struct strparser *strp, struct sock *sk,
447 /* The sk (sock) arg determines the mode of the stream parser.
449 * If the sock is set then the strparser is in receive callback mode.
454 * If the sock is not set then the strparser is in general mode.