Lines Matching refs:vsock_sock
25 #define vsock_sk(__sk) ((struct vsock_sock *)__sk)
28 struct vsock_sock { struct
78 s64 vsock_stream_has_data(struct vsock_sock *vsk); argument
79 s64 vsock_stream_has_space(struct vsock_sock *vsk);
110 int (*init)(struct vsock_sock *, struct vsock_sock *);
111 void (*destruct)(struct vsock_sock *);
112 void (*release)(struct vsock_sock *);
115 int (*cancel_pkt)(struct vsock_sock *vsk);
118 int (*connect)(struct vsock_sock *);
121 int (*dgram_bind)(struct vsock_sock *, struct sockaddr_vm *);
122 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
124 int (*dgram_enqueue)(struct vsock_sock *, struct sockaddr_vm *,
130 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
132 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
134 s64 (*stream_has_data)(struct vsock_sock *);
135 s64 (*stream_has_space)(struct vsock_sock *);
136 u64 (*stream_rcvhiwat)(struct vsock_sock *);
137 bool (*stream_is_active)(struct vsock_sock *);
139 int (*set_rcvlowat)(struct vsock_sock *vsk, int val);
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 *);
172 int (*shutdown)(struct vsock_sock *, int);
184 const struct vsock_transport *vsock_core_get_transport(struct vsock_sock *vsk);
189 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table()
195 static inline bool __vsock_in_connected_table(struct vsock_sock *vsk) in __vsock_in_connected_table()
204 void vsock_insert_connected(struct vsock_sock *vsk);
205 void vsock_remove_bound(struct vsock_sock *vsk);
206 void vsock_remove_connected(struct vsock_sock *vsk);
210 void vsock_remove_sock(struct vsock_sock *vsk);
213 int vsock_assign_transport(struct vsock_sock *vsk, struct vsock_sock *psk);