Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54db63c2 authored by Asias He's avatar Asias He Committed by Michael S. Tsirkin
Browse files

vhost: Export vhost_dev_set_owner



Signed-off-by: default avatarAsias He <asias@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 181c04a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev)
}

/* Caller should have device mutex */
static long vhost_dev_set_owner(struct vhost_dev *dev)
long vhost_dev_set_owner(struct vhost_dev *dev)
{
	struct task_struct *worker;
	int err;
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ struct vhost_dev {
};

long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
long vhost_dev_set_owner(struct vhost_dev *dev);
long vhost_dev_check_owner(struct vhost_dev *);
struct vhost_memory *vhost_dev_reset_owner_prepare(void);
void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *);