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

Function db_sysctl_cmd_usage

freebsd/kern/kern_sysctl.c:2890–2917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2888}
2889
2890static void
2891db_sysctl_cmd_usage(void)
2892{
2893 db_printf(
2894 " sysctl [/Nnox] <sysctl> \n"
2895 " \n"
2896 " <sysctl> The name of the sysctl to show. \n"
2897 " \n"
2898 " Show a sysctl by hooking into SYSCTL_IN and SYSCTL_OUT. \n"
2899 " This will work for most sysctls, but should not be used \n"
2900 " with sysctls that are known to malloc. \n"
2901 " \n"
2902 " While recursing any \"unsafe\" sysctls will be skipped. \n"
2903 " Call sysctl directly on the sysctl to try printing the \n"
2904 " skipped sysctl. This is unsafe and may make the ddb \n"
2905 " session unusable. \n"
2906 " \n"
2907 " Arguments: \n"
2908 " /N Display only the name of the sysctl. \n"
2909 " /n Display only the value of the sysctl. \n"
2910 " /o Display opaque values. \n"
2911 " /x Display the sysctl in hex. \n"
2912 " \n"
2913 "For example: \n"
2914 "sysctl vm.v_free_min \n"
2915 "vn.v_free_min: 12669 \n"
2916 );
2917}
2918
2919/*
2920 * Show a specific sysctl similar to sysctl (8).

Callers 1

kern_sysctl.cFile · 0.85

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected