diff options
author | Asias He <asias@redhat.com> | 2013-05-05 23:15:59 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-05-06 05:57:54 -0400 |
commit | 54db63c2ca153ebf0c868cdf79f52ec9e701d38c (patch) | |
tree | 463006aa3cbc2f432dc1068d34a176bbd25c236a /drivers/vhost | |
parent | 181c04a357bb791587c55a99362c2fdde2c64f18 (diff) |
vhost: Export vhost_dev_set_owner
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 2 | ||||
-rw-r--r-- | drivers/vhost/vhost.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 749b5ab5bfbb..de9441a1b158 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -344,7 +344,7 @@ static int vhost_attach_cgroups(struct vhost_dev *dev) | |||
344 | } | 344 | } |
345 | 345 | ||
346 | /* Caller should have device mutex */ | 346 | /* Caller should have device mutex */ |
347 | static long vhost_dev_set_owner(struct vhost_dev *dev) | 347 | long vhost_dev_set_owner(struct vhost_dev *dev) |
348 | { | 348 | { |
349 | struct task_struct *worker; | 349 | struct task_struct *worker; |
350 | int err; | 350 | int err; |
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index b58f4ae82cb8..cc23bc456d15 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h | |||
@@ -135,6 +135,7 @@ struct vhost_dev { | |||
135 | }; | 135 | }; |
136 | 136 | ||
137 | long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs); | 137 | long vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs); |
138 | long vhost_dev_set_owner(struct vhost_dev *dev); | ||
138 | long vhost_dev_check_owner(struct vhost_dev *); | 139 | long vhost_dev_check_owner(struct vhost_dev *); |
139 | struct vhost_memory *vhost_dev_reset_owner_prepare(void); | 140 | struct vhost_memory *vhost_dev_reset_owner_prepare(void); |
140 | void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *); | 141 | void vhost_dev_reset_owner(struct vhost_dev *, struct vhost_memory *); |