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

Function sysctl_remove_oid

freebsd/kern/kern_sysctl.c:719–728  ·  view source on GitHub ↗

* Remove dynamically created sysctl trees. * oidp - top of the tree to be removed * del - if 0 - just deregister, otherwise free up entries as well * recurse - if != 0 traverse the subtree to be deleted */

Source from the content-addressed store, hash-verified

717 * recurse - if != 0 traverse the subtree to be deleted
718 */
719int
720sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse)
721{
722 int error;
723
724 SYSCTL_WLOCK();
725 error = sysctl_remove_oid_locked(oidp, del, recurse);
726 SYSCTL_WUNLOCK();
727 return (error);
728}
729
730int
731sysctl_remove_name(struct sysctl_oid *parent, const char *name,

Callers 5

am335x_scm_detachFunction · 0.85
twl_vreg_detachFunction · 0.85
twl_clks_detachFunction · 0.85
et_deregisterFunction · 0.85
zone_dtorFunction · 0.85

Calls 1

sysctl_remove_oid_lockedFunction · 0.85

Tested by

no test coverage detected