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

Function sysctl_debug_ng_dump_items

freebsd/netgraph/ng_base.c:3365–3383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3363}
3364
3365static int
3366sysctl_debug_ng_dump_items(SYSCTL_HANDLER_ARGS)
3367{
3368 int error;
3369 int val;
3370 int i;
3371
3372 val = allocated;
3373 i = 1;
3374 error = sysctl_handle_int(oidp, &val, 0, req);
3375 if (error != 0 || req->newptr == NULL)
3376 return (error);
3377 if (val == 42) {
3378 ng_dumpitems();
3379 ng_dumpnodes();
3380 ng_dumphooks();
3381 }
3382 return (0);
3383}
3384
3385SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items,
3386 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, 0, sizeof(int),

Callers

nothing calls this directly

Calls 4

sysctl_handle_intFunction · 0.85
ng_dumpitemsFunction · 0.70
ng_dumpnodesFunction · 0.70
ng_dumphooksFunction · 0.70

Tested by

no test coverage detected