Lines Matching defs:sysctl

50 #include <sys/sysctl.h>
79 static MALLOC_DEFINE(M_SYSCTL, "sysctl", "sysctl internal magic");
80 static MALLOC_DEFINE(M_SYSCTLOID, "sysctloid", "sysctl dynamic oids");
81 static MALLOC_DEFINE(M_SYSCTLTMP, "sysctltmp", "sysctl temp output buffer");
86 * The sysctllock protects the MIB tree. It also protects sysctl
95 * sysctl requests. This is implemented by serializing any userland
96 * sysctl requests larger than a single page via an exclusive lock.
113 #define SYSCTL_INIT() rm_init_flags(&sysctllock, "sysctl lock", \
194 * untill we're ready to remove all traces of Giant from sysctl(9).
354 printf("Setting sysctl %s failed: %d\n", path + rem, error);
479 * <sys/sysctl.h>, and make sure it is at least 256 to
480 * accommodate e.g. net.inet.raw as a static sysctl node.
508 panic("sysctl: Out of OID numbers\n");
519 printf("sysctl: OID number(%d) is already in use for '%s'\n",
565 ("sysctl node is marked as dormant"));
569 ("enabling already enabled sysctl oid"));
593 printf("%s: failed(%d) to unregister sysctl(%s)\n",
723 * Remove dynamically created sysctl trees.
813 * method to purge your sysctl tree of leftovers...
849 * sysctl lock was held across a handler invocation,
980 sx_init(&sysctlmemlock, "sysctl mem");
981 sx_init(&sysctlstringlock, "sysctl string handler");
988 SYSINIT(sysctl, SI_SUB_KMEM, SI_ORDER_FIRST, sysctl_register_all, NULL);
1090 * used by the sysctl program to walk the tree, and get the type
1332 * Recursively walk the sysctl subtree at lsp until we find the given name.
1892 * If the sysctl isn't writable and isn't a preallocated tunable that
2325 * You can't call a sysctl when it's a node, but has
2335 /* Is this sysctl writable? */
2357 /* Is this sysctl sensitive to securelevels? */
2365 /* Is this sysctl writable by only privileged users? */
2590 * Drain into a sysctl struct. The user buffer should be wired if a page
2625 /* Check to see if the last sysctl printed */
2682 * Use in place of sysctl_old_kernel to print sysctl values.
2684 * Compare to the output handling in show_var from sbin/sysctl/sysctl.c
2812 * Avoid setting new sysctl values from the debugger
2826 * Run a sysctl handler with the DDB oldfunc and newfunc attached.
2872 * Show a sysctl's name
2887 db_error("sysctl name oid");
2891 db_error("sysctl name");
2909 * Show a sysctl at a specific OID
2910 * Compare to the input handling in show_var from sbin/sysctl/sysctl.c
2963 * Compare to sysctl_all from sbin/sysctl/sysctl.c
2991 db_error("sysctl(next)");
3017 * Show a sysctl by its user facing string
3044 " sysctl [/Nnox] <sysctl> \n"
3046 " <sysctl> The name of the sysctl to show. \n"
3048 " Show a sysctl by hooking into SYSCTL_IN and SYSCTL_OUT. \n"
3053 " Call sysctl directly on the sysctl to try printing the \n"
3054 " skipped sysctl. This is unsafe and may make the ddb \n"
3058 " /N Display only the name of the sysctl. \n"
3059 " /n Display only the value of the sysctl. \n"
3061 " /x Display the sysctl in hex. \n"
3064 "sysctl vm.v_free_min \n"
3070 * Show a specific sysctl similar to sysctl (8).
3072 DB_COMMAND_FLAGS(sysctl, db_sysctl_cmd, CS_OWN)
3100 /* Parse the sysctl names */
3103 db_printf("Need sysctl name\n");
3114 db_printf("Unexpected sysctl argument\n");