Lines Matching refs:vsock_sock
24 #define vsock_sk(__sk) ((struct vsock_sock *)__sk)
27 struct vsock_sock { struct
71 s64 vsock_stream_has_data(struct vsock_sock *vsk); argument
72 s64 vsock_stream_has_space(struct vsock_sock *vsk);
93 int (*init)(struct vsock_sock *, struct vsock_sock *);
94 void (*destruct)(struct vsock_sock *);
95 void (*release)(struct vsock_sock *);
98 int (*cancel_pkt)(struct vsock_sock *vsk);
101 int (*connect)(struct vsock_sock *);
104 int (*dgram_bind)(struct vsock_sock *, struct sockaddr_vm *);
105 int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg,
107 int (*dgram_enqueue)(struct vsock_sock *, struct sockaddr_vm *,
113 ssize_t (*stream_dequeue)(struct vsock_sock *, struct msghdr *,
115 ssize_t (*stream_enqueue)(struct vsock_sock *, struct msghdr *,
117 s64 (*stream_has_data)(struct vsock_sock *);
118 s64 (*stream_has_space)(struct vsock_sock *);
119 u64 (*stream_rcvhiwat)(struct vsock_sock *);
120 bool (*stream_is_active)(struct vsock_sock *);
124 int (*notify_poll_in)(struct vsock_sock *, size_t, bool *);
125 int (*notify_poll_out)(struct vsock_sock *, size_t, bool *);
126 int (*notify_recv_init)(struct vsock_sock *, size_t,
128 int (*notify_recv_pre_block)(struct vsock_sock *, size_t,
130 int (*notify_recv_pre_dequeue)(struct vsock_sock *, size_t,
132 int (*notify_recv_post_dequeue)(struct vsock_sock *, size_t,
134 int (*notify_send_init)(struct vsock_sock *,
136 int (*notify_send_pre_block)(struct vsock_sock *,
138 int (*notify_send_pre_enqueue)(struct vsock_sock *,
140 int (*notify_send_post_enqueue)(struct vsock_sock *, ssize_t,
144 int (*shutdown)(struct vsock_sock *, int);
147 void (*set_buffer_size)(struct vsock_sock *, u64);
148 void (*set_min_buffer_size)(struct vsock_sock *, u64);
149 void (*set_max_buffer_size)(struct vsock_sock *, u64);
150 u64 (*get_buffer_size)(struct vsock_sock *);
151 u64 (*get_min_buffer_size)(struct vsock_sock *);
152 u64 (*get_max_buffer_size)(struct vsock_sock *);
173 static inline bool __vsock_in_bound_table(struct vsock_sock *vsk) in __vsock_in_bound_table()
179 static inline bool __vsock_in_connected_table(struct vsock_sock *vsk) in __vsock_in_connected_table()
188 void vsock_insert_connected(struct vsock_sock *vsk);
189 void vsock_remove_bound(struct vsock_sock *vsk);
190 void vsock_remove_connected(struct vsock_sock *vsk);
194 void vsock_remove_sock(struct vsock_sock *vsk);