MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_dumpnodes

Function ng_dumpnodes

freebsd/netgraph/ng_base.c:3339–3350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3337}
3338
3339static void
3340ng_dumpnodes(void)
3341{
3342 node_p node;
3343 int i = 1;
3344 mtx_lock(&ng_nodelist_mtx);
3345 SLIST_FOREACH(node, &ng_allnodes, nd_all) {
3346 printf("[%d] ", i++);
3347 dumpnode(node, NULL, 0);
3348 }
3349 mtx_unlock(&ng_nodelist_mtx);
3350}
3351
3352static void
3353ng_dumphooks(void)

Callers 1

Calls 4

dumpnodeFunction · 0.70
mtx_lockFunction · 0.50
printfFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected