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

Function db_oid_safe

freebsd/kern/kern_sysctl.c:2744–2753  ·  view source on GitHub ↗

* Check to see if an OID is safe to print from ddb. */

Source from the content-addressed store, hash-verified

2742 * Check to see if an OID is safe to print from ddb.
2743 */
2744static bool
2745db_oid_safe(const struct sysctl_oid *oidp)
2746{
2747 for (unsigned int i = 0; i < nitems(db_safe_handlers); ++i) {
2748 if (oidp->oid_handler == db_safe_handlers[i])
2749 return (true);
2750 }
2751
2752 return (false);
2753}
2754
2755/*
2756 * Show a sysctl at a specific OID

Callers 1

db_show_oidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected