diff options
Diffstat (limited to 'include/linux/hyperv.h')
| -rw-r--r-- | include/linux/hyperv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index cd184bdca58f..6824556d37ed 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
| @@ -1169,6 +1169,13 @@ int __must_check __vmbus_driver_register(struct hv_driver *hv_driver, | |||
| 1169 | const char *mod_name); | 1169 | const char *mod_name); |
| 1170 | void vmbus_driver_unregister(struct hv_driver *hv_driver); | 1170 | void vmbus_driver_unregister(struct hv_driver *hv_driver); |
| 1171 | 1171 | ||
| 1172 | static inline const char *vmbus_dev_name(const struct hv_device *device_obj) | ||
| 1173 | { | ||
| 1174 | const struct kobject *kobj = &device_obj->device.kobj; | ||
| 1175 | |||
| 1176 | return kobj->name; | ||
| 1177 | } | ||
| 1178 | |||
| 1172 | void vmbus_hvsock_device_unregister(struct vmbus_channel *channel); | 1179 | void vmbus_hvsock_device_unregister(struct vmbus_channel *channel); |
| 1173 | 1180 | ||
| 1174 | int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj, | 1181 | int vmbus_allocate_mmio(struct resource **new, struct hv_device *device_obj, |
