Page MenuHomeFreeBSD

D7026.diff
No OneTemporary

D7026.diff

Index: head/sys/dev/hyperv/include/hyperv.h
===================================================================
--- head/sys/dev/hyperv/include/hyperv.h
+++ head/sys/dev/hyperv/include/hyperv.h
@@ -403,14 +403,18 @@
HV_VMBUS_IVAR_TYPE,
HV_VMBUS_IVAR_INSTANCE,
HV_VMBUS_IVAR_NODE,
- HV_VMBUS_IVAR_DEVCTX
+ HV_VMBUS_IVAR_DEVCTX,
+ HV_VMBUS_IVAR_CHAN,
};
#define HV_VMBUS_ACCESSOR(var, ivar, type) \
__BUS_ACCESSOR(vmbus, var, HV_VMBUS, ivar, type)
+struct hv_vmbus_channel;
+
HV_VMBUS_ACCESSOR(type, TYPE, const char *)
HV_VMBUS_ACCESSOR(devctx, DEVCTX, struct hv_device *)
+HV_VMBUS_ACCESSOR(channel, CHAN, struct hv_vmbus_channel *)
/*
Index: head/sys/dev/hyperv/vmbus/vmbus.c
===================================================================
--- head/sys/dev/hyperv/vmbus/vmbus.c
+++ head/sys/dev/hyperv/vmbus/vmbus.c
@@ -978,6 +978,10 @@
case HV_VMBUS_IVAR_NODE:
*result = (uintptr_t)child_dev_ctx->device;
return (0);
+
+ case HV_VMBUS_IVAR_CHAN:
+ *result = (uintptr_t)child_dev_ctx->channel;
+ return (0);
}
return (ENOENT);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 10:35 AM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15598235
Default Alt Text
D7026.diff (1 KB)

Event Timeline