summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-12-03 12:34:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-12-06 11:52:49 +0100
commitfc76936d3ea5720a6e0948a08381b803a68deb28 (patch)
tree38cd6e3f4735aec633fbba201a2fc08aec50e00b /include/linux/hyperv.h
parent6ffc4b85358f6b7d252420cfa5862312cf5f83d8 (diff)
downloadlinux-fc76936d3ea5720a6e0948a08381b803a68deb28.tar.gz
linux-fc76936d3ea5720a6e0948a08381b803a68deb28.tar.xz
vmbus: add support for dynamic device id's
This patch adds sysfs interface to dynamically bind new UUID values to existing VMBus device. This is useful for generic UIO driver to act similar to uio_pci_generic. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 35053f99522b..42fe43fb0c80 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1119,6 +1119,12 @@ struct hv_driver {
struct device_driver driver;
+ /* dynamic device GUID's */
+ struct {
+ spinlock_t lock;
+ struct list_head list;
+ } dynids;
+
int (*probe)(struct hv_device *, const struct hv_vmbus_device_id *);
int (*remove)(struct hv_device *);
void (*shutdown)(struct hv_device *);