Lines Matching refs:sock
63 #include <net/sock.h>
130 struct sock sk;
1419 struct sock *sk = tfile->socket.sk;
1431 struct sock *sk;
1522 struct sock *sk = tfile->socket.sk;
2417 static void tun_sock_write_space(struct sock *sk)
2562 static int tun_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len)
2565 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2614 static int tun_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len,
2617 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2632 ret = sock_recv_errqueue(sock->sk, m, total_len,
2666 static int tun_peek_len(struct socket *sock)
2668 struct tun_file *tfile = container_of(sock, struct tun_file, socket);