Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152475957
D6523.id.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
D6523.id.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
@@ -443,16 +443,11 @@
}
static int
-vmbus_read_ivar(
- device_t dev,
- device_t child,
- int index,
- uintptr_t* result)
+vmbus_read_ivar(device_t dev, device_t child, int index, uintptr_t *result)
{
struct hv_device *child_dev_ctx = device_get_ivars(child);
switch (index) {
-
case HV_VMBUS_IVAR_TYPE:
*result = (uintptr_t) &child_dev_ctx->class_id;
return (0);
@@ -470,14 +465,9 @@
}
static int
-vmbus_write_ivar(
- device_t dev,
- device_t child,
- int index,
- uintptr_t value)
+vmbus_write_ivar(device_t dev, device_t child, int index, uintptr_t value)
{
switch (index) {
-
case HV_VMBUS_IVAR_TYPE:
case HV_VMBUS_IVAR_INSTANCE:
case HV_VMBUS_IVAR_DEVCTX:
@@ -508,19 +498,16 @@
return (0);
}
-struct hv_device*
-hv_vmbus_child_device_create(
- hv_guid type,
- hv_guid instance,
- hv_vmbus_channel* channel)
+struct hv_device *
+hv_vmbus_child_device_create(hv_guid type, hv_guid instance,
+ hv_vmbus_channel *channel)
{
- hv_device* child_dev;
+ hv_device *child_dev;
/*
* Allocate the new child device
*/
- child_dev = malloc(sizeof(hv_device), M_DEVBUF,
- M_WAITOK | M_ZERO);
+ child_dev = malloc(sizeof(hv_device), M_DEVBUF, M_WAITOK | M_ZERO);
child_dev->channel = channel;
memcpy(&child_dev->class_id, &type, sizeof(hv_guid));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 4:53 AM (6 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31570842
Default Alt Text
D6523.id.diff (1 KB)
Attached To
Mode
D6523: hyperv/vmbus: Minor style and white space cleanup
Attached
Detach File
Event Timeline
Log In to Comment