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 int (*notify_poll_in)(struct vsock_sock *, size_t, bool *);
140 int (*notify_poll_out)(struct vsock_sock *, size_t, bool *);
141 int (*notify_recv_init)(struct vsock_sock *, size_t,
143 int (*notify_recv_pre_block)(struct vsock_sock *, size_t,
145 int (*notify_recv_pre_dequeue)(struct vsock_sock *, size_t,
147 int (*notify_recv_post_dequeue)(struct vsock_sock *, size_t,
149 int (*notify_send_init)(struct vsock_sock *,
151 int (*notify_send_pre_block)(struct vsock_sock *,
153 int (*notify_send_pre_enqueue)(struct vsock_sock *,
155 int (*notify_send_post_enqueue)(struct vsock_sock *, ssize_t,
158 void (*notify_buffer_size)(struct vsock_sock *, u64 *);
161 int (*shutdown)(struct vsock_sock *, int);
173 const struct vsock_transport *vsock_core_get_transport(struct vsock_sock *vsk);
178 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table()
184 static inline bool __vsock_in_connected_table(struct vsock_sock *vsk) in __vsock_in_connected_table()
193 void vsock_insert_connected(struct vsock_sock *vsk);
194 void vsock_remove_bound(struct vsock_sock *vsk);
195 void vsock_remove_connected(struct vsock_sock *vsk);
199 void vsock_remove_sock(struct vsock_sock *vsk);
201 int vsock_assign_transport(struct vsock_sock *vsk, struct vsock_sock *psk);