| 2888 | } |
| 2889 | |
| 2890 | static void |
| 2891 | db_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). |
no test coverage detected