host-drivers/base-driver/vca/vca_virtio/include/vca_virtio_config.h
static inline
int virtqueue_set_affinity(struct virtqueue *vq, int cpu)
{
	struct virtio_device *vdev = vq->vdev;
	if (vdev->config->set_vq_affinity)
		return vdev->config->set_vq_affinity(vq, cpu);
	return 0;
}
/**
 * virtqueue_set_affinity - setting affinity for a virtqueue
 * @vq: the virtqueue
 * @cpu: the cpu no.
 *
 * Pay attention the function are best-effort: the affinity hint may not be set
 * due to config support, irq type and sharing.
 *
 */
setting affinity for a virtqueue
@vq: the virtqueue
@cpu: the cpu no.

Pay attention the function are best-effort: the affinity hint may not be set
due to config support, irq type and sharing.
setting affinity for a virtqueue @vq : the virtqueue @cpu : the cpu no . Pay attention the function are best - effort : the affinity hint may not be set due to config support irq type and sharing .
static inline
int virtqueue_set_affinity(struct virtqueue *vq, int cpu)
{
	struct virtio_device *vdev = vq->vdev;
	if (vdev->config->set_vq_affinity)
		return vdev->config->set_vq_affinity(vq, cpu);
	return 0;
}
static inline int virtqueue_set_affinity ( struct virtqueue * vq , int cpu ) { struct virtio_device * vdev = vq -> vdev ; if ( vdev -> config -> set_vq_affinity ) return vdev -> config -> set_vq_affinity ( vq , cpu ) ; return 0 ; }
virtqueue_set_affinity - setting affinity for a virtqueue
 @vq: the virtqueue
 @cpu: the cpu no.
virtqueue_set_affinity - setting affinity for a virtqueue @vq : the virtqueue @cpu : the cpu no .