diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 23:49:58 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 23:49:59 +1100 |
commit | f957d1f05a1a20bc3b954877c6562a4d53d58bde (patch) | |
tree | 4eb230a96bb15b74050005f40a7ec383e26d13ad /include/linux/virtio.h | |
parent | 18445c4d501b9ab4336f66ef46b092661ddaf336 (diff) | |
download | kernel_samsung_tuna-f957d1f05a1a20bc3b954877c6562a4d53d58bde.zip kernel_samsung_tuna-f957d1f05a1a20bc3b954877c6562a4d53d58bde.tar.gz kernel_samsung_tuna-f957d1f05a1a20bc3b954877c6562a4d53d58bde.tar.bz2 |
virtio: configuration change callback
Various drivers want to know when their configuration information
changes: the balloon driver is the immediate user, but the network
driver may one day have a "carrier" status as well.
This introduces that callback (lguest doesn't use it yet).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio.h')
-rw-r--r-- | include/linux/virtio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 951d817..78408d5 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -98,12 +98,15 @@ void unregister_virtio_device(struct virtio_device *dev); * @probe: the function to call when a device is found. Returns a token for * remove, or PTR_ERR(). * @remove: the function when a device is removed. + * @config_changed: optional function to call when the device configuration + * changes; may be called in interrupt context. */ struct virtio_driver { struct device_driver driver; const struct virtio_device_id *id_table; int (*probe)(struct virtio_device *dev); void (*remove)(struct virtio_device *dev); + void (*config_changed)(struct virtio_device *dev); }; int register_virtio_driver(struct virtio_driver *drv); |