1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_VHOST_TASK_H
3 #define _LINUX_VHOST_TASK_H
5 #include <linux/completion.h>
10 int (*fn)(void *data);
12 struct completion exited;
14 struct task_struct *task;
17 struct vhost_task *vhost_task_create(int (*fn)(void *), void *arg,
19 void vhost_task_start(struct vhost_task *vtsk);
20 void vhost_task_stop(struct vhost_task *vtsk);
21 bool vhost_task_should_stop(struct vhost_task *vtsk);