Lines Matching defs:sock
62 #include <net/sock.h>
98 static int can_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
100 struct sock *sk = sock->sk;
112 static void can_sock_destruct(struct sock *sk)
117 static int can_create(struct net *net, struct socket *sock, int protocol,
120 struct sock *sk;
124 sock->state = SS_UNCONNECTED;
159 if (cp->type != sock->type) {
164 sock->ops = cp->ops;
172 sock_init_data(sock, sk);
240 * The reference to the originating sock may be required
244 * reference to the originating sock by restoring skb->sk