Lines Matching refs:vsock_sock
25 #define vsock_sk(__sk) ((struct vsock_sock *)__sk)
28 struct vsock_sock { struct
78 s64 vsock_connectible_has_data(struct vsock_sock *vsk); argument
79 s64 vsock_stream_has_data(struct vsock_sock *vsk);
80 s64 vsock_stream_has_space(struct vsock_sock *vsk);
111 int (*init)(struct vsock_sock *, struct vsock_sock *);
112 void (*destruct)(struct vsock_sock *);
113 void (*release)(struct vsock_sock *);
116 int (*cancel_pkt)(struct vsock_sock *vsk);
119 int (*connect)(struct vsock_sock *);
122 int (*dgram_bind)(struct vsock_sock *, struct sockaddr_vm *);
123 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
125 int (*dgram_enqueue)(struct vsock_sock *, struct sockaddr_vm *,
131 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
133 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
135 s64 (*stream_has_data)(struct vsock_sock *);
136 s64 (*stream_has_space)(struct vsock_sock *);
137 u64 (*stream_rcvhiwat)(struct vsock_sock *);
138 bool (*stream_is_active)(struct vsock_sock *);
142 ssize_t (*seqpacket_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
144 int (*seqpacket_enqueue)(struct vsock_sock *vsk, struct msghdr *msg,
147 u32 (*seqpacket_has_data)(struct vsock_sock *vsk);
150 int (*notify_poll_in)(struct vsock_sock *, size_t, bool *);
151 int (*notify_poll_out)(struct vsock_sock *, size_t, bool *);
152 int (*notify_recv_init)(struct vsock_sock *, size_t,
154 int (*notify_recv_pre_block)(struct vsock_sock *, size_t,
156 int (*notify_recv_pre_dequeue)(struct vsock_sock *, size_t,
158 int (*notify_recv_post_dequeue)(struct vsock_sock *, size_t,
160 int (*notify_send_init)(struct vsock_sock *,
162 int (*notify_send_pre_block)(struct vsock_sock *,
164 int (*notify_send_pre_enqueue)(struct vsock_sock *,
166 int (*notify_send_post_enqueue)(struct vsock_sock *, ssize_t,
169 void (*notify_buffer_size)(struct vsock_sock *, u64 *);
170 int (*notify_set_rcvlowat)(struct vsock_sock *vsk, int val);
173 int (*shutdown)(struct vsock_sock *, int);
179 int (*read_skb)(struct vsock_sock *, skb_read_actor_t);
188 const struct vsock_transport *vsock_core_get_transport(struct vsock_sock *vsk);
193 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table()
199 static inline bool __vsock_in_connected_table(struct vsock_sock *vsk) in __vsock_in_connected_table()
207 void vsock_insert_connected(struct vsock_sock *vsk);
208 void vsock_remove_bound(struct vsock_sock *vsk);
209 void vsock_remove_connected(struct vsock_sock *vsk);
213 void vsock_remove_sock(struct vsock_sock *vsk);
216 int vsock_assign_transport(struct vsock_sock *vsk, struct vsock_sock *psk);