diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2014-04-27 21:45:08 -0400 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-04-27 22:04:13 -0400 |
| commit | e2dcdfe95c0bd67e37db6057edd9c4ee1f1c7b17 (patch) | |
| tree | d6e0676596a6f906362d836a08e4629dc9442fdd /include/linux | |
| parent | ec6931b281797b69e6cf109f9cc94d5a2bf994e0 (diff) | |
virtio: virtio_break_device() to mark all virtqueues broken.
Good for post-apocalyptic scenarios, like S/390 hotplug.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/virtio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index e4abb84199be..b46671e28de2 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
| @@ -106,6 +106,8 @@ static inline struct virtio_device *dev_to_virtio(struct device *_dev) | |||
| 106 | int register_virtio_device(struct virtio_device *dev); | 106 | int register_virtio_device(struct virtio_device *dev); |
| 107 | void unregister_virtio_device(struct virtio_device *dev); | 107 | void unregister_virtio_device(struct virtio_device *dev); |
| 108 | 108 | ||
| 109 | void virtio_break_device(struct virtio_device *dev); | ||
| 110 | |||
| 109 | /** | 111 | /** |
| 110 | * virtio_driver - operations for a virtio I/O driver | 112 | * virtio_driver - operations for a virtio I/O driver |
| 111 | * @driver: underlying device driver (populate name and owner). | 113 | * @driver: underlying device driver (populate name and owner). |
