From 340f8cc2cd14e62e904a6f7dd6ee5ada24a94587 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 4 Feb 2008 23:49:58 -0500 Subject: [PATCH] --- yaml --- r: 82814 b: refs/heads/master c: f957d1f05a1a20bc3b954877c6562a4d53d58bde h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/virtio.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 950662d18542..eff8807143a4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 18445c4d501b9ab4336f66ef46b092661ddaf336 +refs/heads/master: f957d1f05a1a20bc3b954877c6562a4d53d58bde diff --git a/trunk/include/linux/virtio.h b/trunk/include/linux/virtio.h index 951d81747b42..78408d5237c1 100644 --- a/trunk/include/linux/virtio.h +++ b/trunk/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);