Lines Matching refs:sock
63 #include <net/sock.h>
141 struct sock sk;
1429 struct sock *sk = tfile->socket.sk;
1441 struct sock *sk;
1531 struct sock *sk = tfile->socket.sk;
2431 static void tun_sock_write_space(struct sock *sk)
2565 static int tun_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
2568 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2612 static int tun_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len,
2615 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2630 ret = sock_recv_errqueue(sock->sk, m, total_len,
2664 static int tun_peek_len(struct socket *sock)
2666 struct tun_file *tfile = container_of(sock, struct tun_file, socket);