Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106101911
D7026.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7026.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7026: hyperv/vmbus: Add channel ivar accessor.
Attached
Detach File
Event Timeline
Log In to Comment