Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/ng_base.c
Show All 12 Lines | |||||
if (val == 42) { | if (val == 42) { | ||||
ng_dumpitems(); | ng_dumpitems(); | ||||
ng_dumpnodes(); | ng_dumpnodes(); | ||||
ng_dumphooks(); | ng_dumphooks(); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items, | ||||
0, sizeof(int), sysctl_debug_ng_dump_items, "I", "Number of allocated items"); | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, sizeof(int), sysctl_debug_ng_dump_items, "I", | |||||
"Number of allocated items"); | |||||
#endif /* NETGRAPH_DEBUG */ | #endif /* NETGRAPH_DEBUG */ | ||||
/*********************************************************************** | /*********************************************************************** | ||||
* Worklist routines | * Worklist routines | ||||
**********************************************************************/ | **********************************************************************/ | ||||
/* | /* | ||||
* Pick a node off the list of nodes with work, | * Pick a node off the list of nodes with work, | ||||
* try get an item to process off it. Remove the node from the list. | * try get an item to process off it. Remove the node from the list. | ||||
Show All 12 Lines |