Lines Matching defs:sock
20 #include <net/sock.h>
29 * macvtap_proto is used to allocate queues through the sock allocation
38 struct sock sk;
39 struct socket sock;
79 * There may still be references to the struct sock inside of the
259 static void macvtap_sock_write_space(struct sock *sk)
294 q->sock.wq = &q->wq;
296 q->sock.type = SOCK_RAW;
297 q->sock.state = SS_CONNECTED;
298 q->sock.file = file;
299 q->sock.ops = &macvtap_socket_ops;
300 sock_init_data(&q->sock, &q->sk);
338 (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock.flags) &&
346 static inline struct sk_buff *macvtap_alloc_skb(struct sock *sk, size_t prepad,
747 static int macvtap_sendmsg(struct kiocb *iocb, struct socket *sock,
750 struct macvtap_queue *q = container_of(sock, struct macvtap_queue, sock);
755 static int macvtap_recvmsg(struct kiocb *iocb, struct socket *sock,
759 struct macvtap_queue *q = container_of(sock, struct macvtap_queue, sock);
790 return &q->sock;