Lines Matching +full:data +full:- +full:channel

4  * Copyright (c) 2019-2020 Red Hat Inc
10 * See the COPYING file in the top-level directory.
33 * channel.
72 * (MultiFDPacketDeviceState_t), not RAM data (MultiFDPacket_t).
102 * - normal pages (initial normal_pages entries)
103 * - zero pages (following zero_pages entries)
114 /* size of the next packet that contains the actual data */
162 static inline bool multifd_payload_empty(MultiFDSendData *data) in multifd_payload_empty() argument
164 return data->type == MULTIFD_PAYLOAD_NONE; in multifd_payload_empty()
167 static inline bool multifd_payload_device_state(MultiFDSendData *data) in multifd_payload_device_state() argument
169 return data->type == MULTIFD_PAYLOAD_DEVICE_STATE; in multifd_payload_device_state()
172 static inline void multifd_set_payload_type(MultiFDSendData *data, in multifd_set_payload_type() argument
175 assert(multifd_payload_empty(data)); in multifd_set_payload_type()
178 data->type = type; in multifd_set_payload_type()
185 /* channel number */
187 /* channel thread name */
189 /* channel thread id */
194 /* communication channel */
220 MultiFDSendData *data; member
229 /* packets sent through this channel */
243 /* channel number */
245 /* channel thread name */
247 /* channel thread id */
250 /* communication channel */
269 MultiFDRecvData *data; member
278 /* packets received through this channel */
294 /* used for de-compression methods */
307 * Setup for sending side. Called once per channel during channel
310 * Must allocate p->iov. If packets are in use (default), one
314 * p->write_flags may be used for passing flags to the QIOChannel.
316 * p->compression_data may be used by compression methods to store
317 * compression data.
322 * Cleanup for sending side. Called once per channel during
323 * channel cleanup phase.
330 * a channel that is currently idle.
332 * Must populate p->iov with the data to be sent, increment
333 * p->iovs_num to match the amount of iovecs used and set
334 * p->next_packet_size with the amount of data currently present
335 * in p->iov.
338 * p->flags.
351 * Setup for receiving side. Called once per channel during
352 * channel setup phase. May be empty.
354 * May allocate data structures for the receiving of data. May use
355 * p->iov. Compression methods may use p->compress_data.
360 * Cleanup for receiving side. Called once per channel during
361 * channel cleanup phase. May be empty.
366 * Data receive method. Called as a result of multifd_recv() on
368 * channel that is currently idle. Only called if there is data
371 * Must validate p->flags according to what was set at
374 * Must read the data from the QIOChannel p->c.
388 void multifd_send_data_clear(MultiFDSendData *data);
389 void multifd_send_data_free(MultiFDSendData *data);