Lines Matching refs:vsock_sock
24 #define vsock_sk(__sk) ((struct vsock_sock *)__sk)
27 struct vsock_sock { struct
77 s64 vsock_stream_has_data(struct vsock_sock *vsk); argument
78 s64 vsock_stream_has_space(struct vsock_sock *vsk);
108 int (*init)(struct vsock_sock *, struct vsock_sock *);
109 void (*destruct)(struct vsock_sock *);
110 void (*release)(struct vsock_sock *);
113 int (*cancel_pkt)(struct vsock_sock *vsk);
116 int (*connect)(struct vsock_sock *);
119 int (*dgram_bind)(struct vsock_sock *, struct sockaddr_vm *);
120 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
122 int (*dgram_enqueue)(struct vsock_sock *, struct sockaddr_vm *,
128 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
130 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
132 s64 (*stream_has_data)(struct vsock_sock *);
133 s64 (*stream_has_space)(struct vsock_sock *);
134 u64 (*stream_rcvhiwat)(struct vsock_sock *);
135 bool (*stream_is_active)(struct vsock_sock *);
139 ssize_t (*seqpacket_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
141 int (*seqpacket_enqueue)(struct vsock_sock *vsk, struct msghdr *msg,
144 u32 (*seqpacket_has_data)(struct vsock_sock *vsk);
147 int (*notify_poll_in)(struct vsock_sock *, size_t, bool *);
148 int (*notify_poll_out)(struct vsock_sock *, size_t, bool *);
149 int (*notify_recv_init)(struct vsock_sock *, size_t,
151 int (*notify_recv_pre_block)(struct vsock_sock *, size_t,
153 int (*notify_recv_pre_dequeue)(struct vsock_sock *, size_t,
155 int (*notify_recv_post_dequeue)(struct vsock_sock *, size_t,
157 int (*notify_send_init)(struct vsock_sock *,
159 int (*notify_send_pre_block)(struct vsock_sock *,
161 int (*notify_send_pre_enqueue)(struct vsock_sock *,
163 int (*notify_send_post_enqueue)(struct vsock_sock *, ssize_t,
166 void (*notify_buffer_size)(struct vsock_sock *, u64 *);
169 int (*shutdown)(struct vsock_sock *, int);
181 const struct vsock_transport *vsock_core_get_transport(struct vsock_sock *vsk);
186 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table()
192 static inline bool __vsock_in_connected_table(struct vsock_sock *vsk) in __vsock_in_connected_table()
201 void vsock_insert_connected(struct vsock_sock *vsk);
202 void vsock_remove_bound(struct vsock_sock *vsk);
203 void vsock_remove_connected(struct vsock_sock *vsk);
207 void vsock_remove_sock(struct vsock_sock *vsk);
209 int vsock_assign_transport(struct vsock_sock *vsk, struct vsock_sock *psk);