1 --- sysctl.3.orig 2008-10-21 16:45:53.000000000 -0700
2 +++ sysctl.3 2008-10-22 09:33:13.000000000 -0700
4 .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
5 .\" $FreeBSD: src/lib/libc/gen/sysctl.3,v 1.63 2004/07/02 23:52:10 ru Exp $
16 +Note: Implementation of
18 +-- to print whatever data deemed necessary from the large
22 +) -- is left as an exercise for the reader.
24 The top level names are defined with a CTL_ prefix in
27 The next and subsequent levels down are found in the include files
28 listed here, and described in separate sections below.
30 -.Bl -column CTLXMACHDEPXXX "Next level namesXXXXXX" -offset indent
31 +.Bl -column CTLXMACHDEP "Next level names" -offset indent
32 .It Sy "Name Next level names Description"
33 .It "CTL_DEBUG sys/sysctl.h Debugging"
34 .It "CTL_VFS sys/mount.h File system"
36 .It "CTL_MACHDEP sys/sysctl.h Machine dependent"
37 .It "CTL_NET sys/socket.h Networking"
38 .It "CTL_USER sys/sysctl.h User-level"
39 -.It "CTL_VM vm/vm_param.h Virtual memory"
40 +.It "CTL_VM sys/resources.h Virtual memory (struct loadavg)"
41 +.It "CTL_VM sys/vmmeter.h Virtual memory (struct vmtotal)"
44 For example, the following retrieves the maximum number of processes allowed
46 .It "KERN_PROC_UID A user ID"
47 .It "KERN_PROC_RUID A real user ID"
50 -If the third level name is KERN_PROC_ARGS then the command line argument
51 -array is returned in a flattened form, i.e., zero-terminated arguments
53 -The total size of array is returned.
54 -It is also possible for a process to set its own process title this way.
55 -.Bl -column "Third level nameXXXXXX" "Fourth level is:XXXXXX" -offset indent
56 -.It Sy "Third level name Fourth level is:"
57 -.It "KERN_PROC_ARGS A process ID"
60 Return profiling information about the kernel.
61 If the kernel is not compiled for profiling,
63 .Bl -column "Second level nameXXXXXX" "struct loadavgXXX" -offset indent
64 .It Sy "Second level name Type Changeable"
65 .It "VM_LOADAVG struct loadavg no"
66 -.It "VM_METER struct vmtotal no"
67 .It "VM_PAGEOUT_ALGORITHM integer yes"
68 .It "VM_SWAPPING_ENABLED integer maybe"
69 .It "VM_V_CACHE_MAX integer yes"
71 Return the load average history.
72 The returned data consists of a
75 -Return the system wide virtual memory statistics.
76 -The returned data consists of a
78 .It Li VM_PAGEOUT_ALGORITHM
79 0 if the statistics-based page management algorithm is in use
80 or 1 if the near-LRU algorithm is in use.
82 definitions for second level network identifiers
84 definitions for third level profiling identifiers
86 +.It In mach/vm_param.h
87 definitions for second level virtual memory identifiers
89 definitions for third level IPv4/IPv6 identifiers and