mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
6ffc4b8535
commit
fc76936d3e
2 changed files with 172 additions and 8 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue