Lines Matching defs:sock
68 #include <net/sock.h>
122 struct sock sk;
126 static inline struct tun_sock *tun_sk(struct sock *sk)
509 struct sock *sk;
542 struct sock *sk = tun->socket.sk;
891 static void tun_sock_write_space(struct sock *sk)
911 static void tun_sock_destruct(struct sock *sk)
916 static int tun_sendmsg(struct kiocb *iocb, struct socket *sock,
919 struct tun_struct *tun = container_of(sock, struct tun_struct, socket);
924 static int tun_recvmsg(struct kiocb *iocb, struct socket *sock,
928 struct tun_struct *tun = container_of(sock, struct tun_struct, socket);
1001 struct sock *sk;