* Check to see if an OID is safe to print from ddb. */
| 2742 | * Check to see if an OID is safe to print from ddb. |
| 2743 | */ |
| 2744 | static bool |
| 2745 | db_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 |