Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177715368
D5502.1795112708.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1009 B
Referenced Files
None
Subscribers
None
D5502.1795112708.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_channel.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_channel.c
+++ head/sys/dev/hyperv/vmbus/hv_channel.c
@@ -81,6 +81,17 @@
}
+static int
+vmbus_channel_sysctl_monalloc(SYSCTL_HANDLER_ARGS)
+{
+ struct hv_vmbus_channel *chan = arg1;
+ int alloc = 0;
+
+ if (chan->offer_msg.monitor_allocated)
+ alloc = 1;
+ return sysctl_handle_int(oidp, &alloc, 0, req);
+}
+
static void
hv_vmbus_channel_stat(hv_vmbus_channel* channel)
{
@@ -129,6 +140,10 @@
}
SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(devch_id_sysctl), OID_AUTO,
"cpu", CTLFLAG_RD, &channel->target_cpu, 0, "owner CPU id");
+ SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(devch_id_sysctl), OID_AUTO,
+ "monitor_allocated", CTLTYPE_INT | CTLFLAG_RD, channel, 0,
+ vmbus_channel_sysctl_monalloc, "I",
+ "is monitor allocated to this channel");
devch_id_in_sysctl = SYSCTL_ADD_NODE(ctx,
SYSCTL_CHILDREN(devch_id_sysctl),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 6:25 PM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41850717
Default Alt Text
D5502.1795112708.diff (1009 B)
Attached To
Mode
D5502: hyperv/chan: Add sysctl node to check whether monitor is allocated or not
Attached
Detach File
Event Timeline