]>
Commit | Line | Data |
---|---|---|
59e0d9fe A |
1 | Index: sysctl.3 |
2 | =================================================================== | |
3 | RCS file: /cvs/root/Libc/gen/FreeBSD/sysctl.3,v | |
4 | retrieving revision 1.2 | |
5 | diff -u -r1.2 sysctl.3 | |
6 | --- sysctl.3 2003/05/20 22:21:03 1.2 | |
7 | +++ sysctl.3 2003/10/21 18:31:52 | |
8 | @@ -181,13 +181,21 @@ | |
9 | } | |
10 | .Ed | |
11 | .Pp | |
12 | +Note: Implementation of | |
13 | +.Fn printkproc | |
14 | +-- to print whatever data deemed necessary from the large | |
15 | +.Vt kinfo_proc | |
16 | +structure ( | |
17 | +.In sysctl.h | |
18 | +) -- is left as an exercise for the reader. | |
19 | +.Pp | |
20 | The top level names are defined with a CTL_ prefix in | |
21 | .Aq Pa sys/sysctl.h , | |
22 | and are as follows. | |
23 | The next and subsequent levels down are found in the include files | |
24 | listed here, and described in separate sections below. | |
25 | .Pp | |
26 | -.Bl -column CTLXMACHDEPXXX "Next level namesXXXXXX" -offset indent | |
27 | +.Bl -column CTLXMACHDEP "Next level names" -offset indent | |
28 | .It Sy "Name Next level names Description" | |
29 | .It "CTL\_DEBUG sys/sysctl.h Debugging" | |
30 | .It "CTL\_VFS sys/mount.h File system" | |
31 | @@ -196,7 +204,8 @@ | |
32 | .It "CTL\_MACHDEP sys/sysctl.h Machine dependent" | |
33 | .It "CTL\_NET sys/socket.h Networking" | |
34 | .It "CTL\_USER sys/sysctl.h User-level" | |
35 | -.It "CTL\_VM vm/vm_param.h Virtual memory" | |
36 | +.It "CTL\_VM sys/resource.h Virtual memory (struct loadavg)" | |
37 | +.It "CTL\_VM sys/vmmeter.h Virtual memory (struct vmtotal)" | |
38 | .El | |
39 | .Pp | |
40 | For example, the following retrieves the maximum number of processes allowed |