| @@ -1,1142 +1,1156 @@ | | | @@ -1,1142 +1,1156 @@ |
1 | .\" $NetBSD: sysctl.7,v 1.53 2010/12/14 16:23:59 jruoho Exp $ | | 1 | .\" $NetBSD: sysctl.7,v 1.54 2011/01/09 16:55:59 christos Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1993 | | 3 | .\" Copyright (c) 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
15 | .\" may be used to endorse or promote products derived from this software | | 15 | .\" may be used to endorse or promote products derived from this software |
16 | .\" without specific prior written permission. | | 16 | .\" without specific prior written permission. |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | | 28 | .\" SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 | | 30 | .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 |
31 | .\" | | 31 | .\" |
32 | .Dd December 14, 2010 | | 32 | .Dd January 9, 2010 |
33 | .Dt SYSCTL 7 | | 33 | .Dt SYSCTL 7 |
34 | .Os | | 34 | .Os |
35 | .Sh NAME | | 35 | .Sh NAME |
36 | .Nm sysctl | | 36 | .Nm sysctl |
37 | .Nd system information variables | | 37 | .Nd system information variables |
38 | .Sh DESCRIPTION | | 38 | .Sh DESCRIPTION |
39 | The | | 39 | The |
40 | .Xr sysctl 3 | | 40 | .Xr sysctl 3 |
41 | library function and the | | 41 | library function and the |
42 | .Xr sysctl 8 | | 42 | .Xr sysctl 8 |
43 | utility are used to get and set values of system variables, maintained | | 43 | utility are used to get and set values of system variables, maintained |
44 | by the kernel. | | 44 | by the kernel. |
45 | The variables are organized in a tree and identified by a sequence of | | 45 | The variables are organized in a tree and identified by a sequence of |
46 | numbers, conventionally separated by dots with the topmost identifier | | 46 | numbers, conventionally separated by dots with the topmost identifier |
47 | at the left side. | | 47 | at the left side. |
48 | The numbers have corresponding text names. | | 48 | The numbers have corresponding text names. |
49 | The | | 49 | The |
50 | .Xr sysctlnametomib 3 | | 50 | .Xr sysctlnametomib 3 |
51 | function or the | | 51 | function or the |
52 | .Fl M | | 52 | .Fl M |
53 | argument to the | | 53 | argument to the |
54 | .Xr sysctl 8 | | 54 | .Xr sysctl 8 |
55 | utility can be used to convert the text representation to the | | 55 | utility can be used to convert the text representation to the |
56 | numeric one. | | 56 | numeric one. |
57 | .Pp | | 57 | .Pp |
58 | The individual sysctl variables are described below, both the textual | | 58 | The individual sysctl variables are described below, both the textual |
59 | and numeric form where applicable. | | 59 | and numeric form where applicable. |
60 | The textual names can be used as argument to the | | 60 | The textual names can be used as argument to the |
61 | .Xr sysctl 8 | | 61 | .Xr sysctl 8 |
62 | utility and in the file | | 62 | utility and in the file |
63 | .Pa /etc/sysctl.conf . | | 63 | .Pa /etc/sysctl.conf . |
64 | The numeric names are usually defined as preprocessor constants and | | 64 | The numeric names are usually defined as preprocessor constants and |
65 | are intended for use by programs. | | 65 | are intended for use by programs. |
66 | Every such constant expands to one integer, which identifies the | | 66 | Every such constant expands to one integer, which identifies the |
67 | sysctl variable relative to the upper level of the tree. | | 67 | sysctl variable relative to the upper level of the tree. |
68 | See the | | 68 | See the |
69 | .Xr sysctl 3 | | 69 | .Xr sysctl 3 |
70 | manual page for programming examples. | | 70 | manual page for programming examples. |
71 | .Ss Top level names | | 71 | .Ss Top level names |
72 | The top level names are defined with a CTL_ prefix in | | 72 | The top level names are defined with a CTL_ prefix in |
73 | .In sys/sysctl.h , | | 73 | .In sys/sysctl.h , |
74 | and are as follows. | | 74 | and are as follows. |
75 | The next and subsequent levels down are found in the include files | | 75 | The next and subsequent levels down are found in the include files |
76 | listed here, and described in separate sections below. | | 76 | listed here, and described in separate sections below. |
77 | .Bl -column security CTL_SECURITY "Next level names" "High kernel limits" | | 77 | .Bl -column security CTL_SECURITY "Next level names" "High kernel limits" |
78 | .It Sy Name Constant Next level names Description | | 78 | .It Sy Name Constant Next level names Description |
79 | .It kern CTL_KERN sys/sysctl.h High kernel limits | | 79 | .It kern CTL_KERN sys/sysctl.h High kernel limits |
80 | .It vm CTL_VM uvm/uvm_param.h Virtual memory | | 80 | .It vm CTL_VM uvm/uvm_param.h Virtual memory |
81 | .It vfs CTL_VFS sys/mount.h Filesystem | | 81 | .It vfs CTL_VFS sys/mount.h Filesystem |
82 | .It net CTL_NET sys/socket.h Networking | | 82 | .It net CTL_NET sys/socket.h Networking |
83 | .It debug CTL_DEBUG sys/sysctl.h Debugging | | 83 | .It debug CTL_DEBUG sys/sysctl.h Debugging |
84 | .It hw CTL_HW sys/sysctl.h Generic CPU, I/O | | 84 | .It hw CTL_HW sys/sysctl.h Generic CPU, I/O |
85 | .It machdep CTL_MACHDEP sys/sysctl.h Machine dependent | | 85 | .It machdep CTL_MACHDEP sys/sysctl.h Machine dependent |
86 | .It user CTL_USER sys/sysctl.h User-level | | 86 | .It user CTL_USER sys/sysctl.h User-level |
87 | .It ddb CTL_DDB sys/sysctl.h In-kernel debugger | | 87 | .It ddb CTL_DDB sys/sysctl.h In-kernel debugger |
88 | .It proc CTL_PROC sys/sysctl.h Per-process | | 88 | .It proc CTL_PROC sys/sysctl.h Per-process |
89 | .It vendor CTL_VENDOR ? Vendor specific | | 89 | .It vendor CTL_VENDOR ? Vendor specific |
90 | .It emul CTL_EMUL sys/sysctl.h Emulation settings | | 90 | .It emul CTL_EMUL sys/sysctl.h Emulation settings |
91 | .It security CTL_SECURITY sys/sysctl.h Security settings | | 91 | .It security CTL_SECURITY sys/sysctl.h Security settings |
92 | .El | | 92 | .El |
93 | .Ss The debug.* subtree | | 93 | .Ss The debug.* subtree |
94 | The debugging variables vary from system to system. | | 94 | The debugging variables vary from system to system. |
95 | A debugging variable may be added or deleted without need to recompile | | 95 | A debugging variable may be added or deleted without need to recompile |
96 | .Nm | | 96 | .Nm |
97 | to know about it. | | 97 | to know about it. |
98 | Each time it runs, | | 98 | Each time it runs, |
99 | .Nm | | 99 | .Nm |
100 | gets the list of debugging variables from the kernel and | | 100 | gets the list of debugging variables from the kernel and |
101 | displays their current values. | | 101 | displays their current values. |
102 | The system defines twenty | | 102 | The system defines twenty |
103 | .Va ( struct ctldebug ) | | 103 | .Va ( struct ctldebug ) |
104 | variables named | | 104 | variables named |
105 | .Dv debug0 | | 105 | .Dv debug0 |
106 | through | | 106 | through |
107 | .Dv debug19 . | | 107 | .Dv debug19 . |
108 | They are declared as separate variables so that they can be | | 108 | They are declared as separate variables so that they can be |
109 | individually initialized at the location of their associated variable. | | 109 | individually initialized at the location of their associated variable. |
110 | The loader prevents multiple use of the same variable by issuing errors | | 110 | The loader prevents multiple use of the same variable by issuing errors |
111 | if a variable is initialized in more than one place. | | 111 | if a variable is initialized in more than one place. |
112 | For example, to export the variable | | 112 | For example, to export the variable |
113 | .Dv dospecialcheck | | 113 | .Dv dospecialcheck |
114 | as a debugging variable, the following declaration would be used: | | 114 | as a debugging variable, the following declaration would be used: |
115 | .Pp | | 115 | .Pp |
116 | .Bd -literal -offset indent -compact | | 116 | .Bd -literal -offset indent -compact |
117 | int dospecialcheck = 1; | | 117 | int dospecialcheck = 1; |
118 | struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck }; | | 118 | struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck }; |
119 | .Ed | | 119 | .Ed |
120 | .Pp | | 120 | .Pp |
121 | Note that the dynamic implementation of | | 121 | Note that the dynamic implementation of |
122 | .Nm | | 122 | .Nm |
123 | currently in use largely makes this particular | | 123 | currently in use largely makes this particular |
124 | .Nm | | 124 | .Nm |
125 | interface obsolete. | | 125 | interface obsolete. |
126 | See | | 126 | See |
127 | .Xr sysctl 8 | | 127 | .Xr sysctl 8 |
128 | .\" and | | 128 | .\" and |
129 | .\" .Xr sysctl 9 | | 129 | .\" .Xr sysctl 9 |
130 | for more information. | | 130 | for more information. |
131 | .Ss The vfs.* subtree | | 131 | .Ss The vfs.* subtree |
132 | A distinguished second level name, | | 132 | A distinguished second level name, |
133 | .Li vfs.generic ( VFS_GENERIC ) , | | 133 | .Li vfs.generic ( VFS_GENERIC ) , |
134 | is used to get general information about all filesystems. | | 134 | is used to get general information about all filesystems. |
135 | It has the following third level identifiers: | | 135 | It has the following third level identifiers: |
136 | .Bl -tag -width compact | | 136 | .Bl -tag -width "vfs.generic.maxtypenum (VFS_MAXTYPENUM)" |
137 | .It vfs.generic.maxtypenum ( VFS_MAXTYPENUM ) | | 137 | .It vfs.generic.maxtypenum ( VFS_MAXTYPENUM ) |
138 | The highest valid filesystem type number. | | 138 | The highest valid filesystem type number. |
139 | .It vfs.generic.conf ( VFS_CONF ) | | 139 | .It vfs.generic.conf ( VFS_CONF ) |
140 | Returns configuration information about the file-system type given as a fourth | | 140 | Returns configuration information about the file-system type given as a fourth |
141 | level identifier. | | 141 | level identifier. |
142 | .El | | 142 | .El |
143 | .Pp | | 143 | .Pp |
| | | 144 | A second level name for controlling the |
| | | 145 | .Xr wapbl 4 |
| | | 146 | (Write Ahead Physical Block Logging file system journalling) |
| | | 147 | capabilities with the following third level identifiers: |
| | | 148 | .Bl -tag -width "vfs.wapbl.flush_disk_cache" |
| | | 149 | .It vfs.wapbl.flush_disk_cache Controls whether to attempt to flush the |
| | | 150 | disk cache on each commit. |
| | | 151 | It defaults to 1 and it should always be on to ensure data integrity in |
| | | 152 | case of a crash. |
| | | 153 | For slow disks, turning it off can improve performance. |
| | | 154 | .It vfs.wapbl.verbose_commit For each transaction log commit, print the |
| | | 155 | number of bytes written and the time it took to commit as seconds.nanoseconds. |
| | | 156 | .El |
| | | 157 | .Pp |
144 | The remaining second level identifiers are the file-system names, identified | | 158 | The remaining second level identifiers are the file-system names, identified |
145 | by the type number returned by a | | 159 | by the type number returned by a |
146 | .Xr statvfs 2 | | 160 | .Xr statvfs 2 |
147 | call or from | | 161 | call or from |
148 | .Li vfs.generic.conf . | | 162 | .Li vfs.generic.conf . |
149 | The third level identifiers available for each filesystem | | 163 | The third level identifiers available for each filesystem |
150 | are given in the header file that defines the mount | | 164 | are given in the header file that defines the mount |
151 | argument structure for that filesystem. | | 165 | argument structure for that filesystem. |
152 | .Ss The hw.* subtree | | 166 | .Ss The hw.* subtree |
153 | The string and integer information available for the | | 167 | The string and integer information available for the |
154 | .Li hw | | 168 | .Li hw |
155 | level is detailed below. | | 169 | level is detailed below. |
156 | The changeable column shows whether a process with appropriate | | 170 | The changeable column shows whether a process with appropriate |
157 | privilege may change the value. | | 171 | privilege may change the value. |
158 | .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent | | 172 | .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent |
159 | .It Sy Second level name Type Changeable | | 173 | .It Sy Second level name Type Changeable |
160 | .It hw.alignbytes integer no | | 174 | .It hw.alignbytes integer no |
161 | .It hw.byteorder integer no | | 175 | .It hw.byteorder integer no |
162 | .It hw.cnmagic string yes | | 176 | .It hw.cnmagic string yes |
163 | .It hw.disknames string no | | 177 | .It hw.disknames string no |
164 | .It hw.diskstats struct no | | 178 | .It hw.diskstats struct no |
165 | .It hw.machine string no | | 179 | .It hw.machine string no |
166 | .It hw.machine_arch string no | | 180 | .It hw.machine_arch string no |
167 | .It hw.model string no | | 181 | .It hw.model string no |
168 | .It hw.ncpu integer no | | 182 | .It hw.ncpu integer no |
169 | .It hw.pagesize integer no | | 183 | .It hw.pagesize integer no |
170 | .It hw.physmem integer no | | 184 | .It hw.physmem integer no |
171 | .It hw.physmem64 quad no | | 185 | .It hw.physmem64 quad no |
172 | .It hw.usermem integer no | | 186 | .It hw.usermem integer no |
173 | .It hw.usermem64 quad no | | 187 | .It hw.usermem64 quad no |
174 | .El | | 188 | .El |
175 | .Pp | | 189 | .Pp |
176 | .Bl -tag -width "123456" | | 190 | .Bl -tag -width "123456" |
177 | .It Li hw.alignbytes ( HW_ALIGNBYTES ) | | 191 | .It Li hw.alignbytes ( HW_ALIGNBYTES ) |
178 | Alignment constraint for all possible data types. | | 192 | Alignment constraint for all possible data types. |
179 | This shows the value | | 193 | This shows the value |
180 | .Dv ALIGNBYTES | | 194 | .Dv ALIGNBYTES |
181 | in | | 195 | in |
182 | .Pa /usr/include/machine/param.h , | | 196 | .Pa /usr/include/machine/param.h , |
183 | at the kernel compilation time. | | 197 | at the kernel compilation time. |
184 | .It Li hw.byteorder ( HW_BYTEORDER ) | | 198 | .It Li hw.byteorder ( HW_BYTEORDER ) |
185 | The byteorder (4,321, or 1,234). | | 199 | The byteorder (4,321, or 1,234). |
186 | .It Li hw.cnmagic ( HW_CNMAGIC ) | | 200 | .It Li hw.cnmagic ( HW_CNMAGIC ) |
187 | The console magic key sequence. | | 201 | The console magic key sequence. |
188 | .It Li hw.disknames ( HW_DISKNAMES ) | | 202 | .It Li hw.disknames ( HW_DISKNAMES ) |
189 | The list of (space separated) disk device names on the system. | | 203 | The list of (space separated) disk device names on the system. |
190 | .It Li hw.iostatnames ( HW_IOSTATNAMES ) | | 204 | .It Li hw.iostatnames ( HW_IOSTATNAMES ) |
191 | A space separated list of devices that will have I/O statistics | | 205 | A space separated list of devices that will have I/O statistics |
192 | collected on them. | | 206 | collected on them. |
193 | .It Li hw.iostats ( HW_IOSTATS ) | | 207 | .It Li hw.iostats ( HW_IOSTATS ) |
194 | Return statistical information on the NFS mounts, disk and tape | | 208 | Return statistical information on the NFS mounts, disk and tape |
195 | devices on the system. | | 209 | devices on the system. |
196 | An array of | | 210 | An array of |
197 | .Va struct io_sysctl | | 211 | .Va struct io_sysctl |
198 | structures is returned, | | 212 | structures is returned, |
199 | whose size depends on the current number of such objects in the system. | | 213 | whose size depends on the current number of such objects in the system. |
200 | The third level name is the size of the | | 214 | The third level name is the size of the |
201 | .Va struct io_sysctl . | | 215 | .Va struct io_sysctl . |
202 | The type of object can be determined by examining the | | 216 | The type of object can be determined by examining the |
203 | .Va type | | 217 | .Va type |
204 | element of | | 218 | element of |
205 | .Va struct io_sysctl . | | 219 | .Va struct io_sysctl . |
206 | Which can be | | 220 | Which can be |
207 | .Dv IOSTAT_DISK | | 221 | .Dv IOSTAT_DISK |
208 | (disk drive), | | 222 | (disk drive), |
209 | .Dv IOSTAT_TAPE | | 223 | .Dv IOSTAT_TAPE |
210 | (tape drive), or | | 224 | (tape drive), or |
211 | .Dv IOSTAT_NFS | | 225 | .Dv IOSTAT_NFS |
212 | (NFS mount). | | 226 | (NFS mount). |
213 | .It Li hw.machine ( HW_MACHINE ) | | 227 | .It Li hw.machine ( HW_MACHINE ) |
214 | The machine class. | | 228 | The machine class. |
215 | .It Li hw.machine_arch ( HW_MACHINE_ARCH ) | | 229 | .It Li hw.machine_arch ( HW_MACHINE_ARCH ) |
216 | The machine CPU class. | | 230 | The machine CPU class. |
217 | .It Li hw.model ( HW_MODEL ) | | 231 | .It Li hw.model ( HW_MODEL ) |
218 | The machine model. | | 232 | The machine model. |
219 | .It Li hw.ncpu ( HW_NCPU ) | | 233 | .It Li hw.ncpu ( HW_NCPU ) |
220 | The number of CPUs. | | 234 | The number of CPUs. |
221 | .It Li hw.pagesize ( HW_PAGESIZE ) | | 235 | .It Li hw.pagesize ( HW_PAGESIZE ) |
222 | The software page size. | | 236 | The software page size. |
223 | .It Li hw.physmem ( HW_PHYSMEM ) | | 237 | .It Li hw.physmem ( HW_PHYSMEM ) |
224 | The bytes of physical memory as a 32-bit integer. | | 238 | The bytes of physical memory as a 32-bit integer. |
225 | .It Li hw.physmem64 ( HW_PHYSMEM64 ) | | 239 | .It Li hw.physmem64 ( HW_PHYSMEM64 ) |
226 | The bytes of physical memory as a 64-bit integer. | | 240 | The bytes of physical memory as a 64-bit integer. |
227 | .It Li hw.usermem ( HW_USERMEM ) | | 241 | .It Li hw.usermem ( HW_USERMEM ) |
228 | The bytes of non-kernel memory as a 32-bit integer. | | 242 | The bytes of non-kernel memory as a 32-bit integer. |
229 | .It Li hw.usermem64 ( HW_USERMEM64 ) | | 243 | .It Li hw.usermem64 ( HW_USERMEM64 ) |
230 | The bytes of non-kernel memory as a 64-bit integer. | | 244 | The bytes of non-kernel memory as a 64-bit integer. |
231 | .El | | 245 | .El |
232 | .Ss The kern.* subtree | | 246 | .Ss The kern.* subtree |
233 | This subtree includes data generally related to the kernel. | | 247 | This subtree includes data generally related to the kernel. |
234 | The string and integer information available for the | | 248 | The string and integer information available for the |
235 | .Li kern | | 249 | .Li kern |
236 | level is detailed below. | | 250 | level is detailed below. |
237 | The changeable column shows whether a process with appropriate | | 251 | The changeable column shows whether a process with appropriate |
238 | privilege may change the value. | | 252 | privilege may change the value. |
239 | .Bl -column "kern.posix_reader_writer_locks" \ | | 253 | .Bl -column "kern.posix_reader_writer_locks" \ |
240 | "struct kinfo_drivers" "not applicable" | | 254 | "struct kinfo_drivers" "not applicable" |
241 | .It Sy Second level name Type Changeable | | 255 | .It Sy Second level name Type Changeable |
242 | .It kern.aio_listio_max integer yes | | 256 | .It kern.aio_listio_max integer yes |
243 | .It kern.aio_max integer yes | | 257 | .It kern.aio_max integer yes |
244 | .It kern.arandom integer no | | 258 | .It kern.arandom integer no |
245 | .It kern.argmax integer no | | 259 | .It kern.argmax integer no |
246 | .It kern.boothowto integer no | | 260 | .It kern.boothowto integer no |
247 | .It kern.boottime struct timeval no | | 261 | .It kern.boottime struct timeval no |
248 | .\".It kern.bufq node not applicable | | 262 | .\".It kern.bufq node not applicable |
249 | .It kern.ccpu integer no | | 263 | .It kern.ccpu integer no |
250 | .It kern.clockrate struct clockinfo no | | 264 | .It kern.clockrate struct clockinfo no |
251 | .It kern.consdev integer no | | 265 | .It kern.consdev integer no |
252 | .It kern.coredump node not applicable | | 266 | .It kern.coredump node not applicable |
253 | .It kern.cp_id struct no | | 267 | .It kern.cp_id struct no |
254 | .It kern.cp_time uint64_t[\|] no | | 268 | .It kern.cp_time uint64_t[\|] no |
255 | .It kern.cryptodevallowsoft integer yes | | 269 | .It kern.cryptodevallowsoft integer yes |
256 | .It kern.defcorename string yes | | 270 | .It kern.defcorename string yes |
257 | .It kern.detachall integer yes | | 271 | .It kern.detachall integer yes |
258 | .It kern.domainname string yes | | 272 | .It kern.domainname string yes |
259 | .It kern.drivers struct kinfo_drivers no | | 273 | .It kern.drivers struct kinfo_drivers no |
260 | .It kern.dump_on_panic integer yes | | 274 | .It kern.dump_on_panic integer yes |
261 | .It kern.file struct file no | | 275 | .It kern.file struct file no |
262 | .It kern.forkfsleep integer yes | | 276 | .It kern.forkfsleep integer yes |
263 | .It kern.fscale integer no | | 277 | .It kern.fscale integer no |
264 | .It kern.fsync integer no | | 278 | .It kern.fsync integer no |
265 | .It kern.hardclock_ticks integer no | | 279 | .It kern.hardclock_ticks integer no |
266 | .It kern.hostid integer yes | | 280 | .It kern.hostid integer yes |
267 | .It kern.hostname string yes | | 281 | .It kern.hostname string yes |
268 | .It kern.iov_max integer no | | 282 | .It kern.iov_max integer no |
269 | .It kern.ipc node not applicable | | 283 | .It kern.ipc node not applicable |
270 | .It kern.job_control integer no | | 284 | .It kern.job_control integer no |
271 | .It kern.labeloffset integer no | | 285 | .It kern.labeloffset integer no |
272 | .It kern.labelsector integer no | | 286 | .It kern.labelsector integer no |
273 | .It kern.login_name_max integer no | | 287 | .It kern.login_name_max integer no |
274 | .It kern.logsigexit integer yes | | 288 | .It kern.logsigexit integer yes |
275 | .It kern.mapped_files integer no | | 289 | .It kern.mapped_files integer no |
276 | .It kern.maxfiles integer yes | | 290 | .It kern.maxfiles integer yes |
277 | .It kern.maxpartitions integer no | | 291 | .It kern.maxpartitions integer no |
278 | .It kern.maxphys integer no | | 292 | .It kern.maxphys integer no |
279 | .It kern.maxproc integer yes | | 293 | .It kern.maxproc integer yes |
280 | .It kern.maxptys integer yes | | 294 | .It kern.maxptys integer yes |
281 | .It kern.maxvnodes integer yes | | 295 | .It kern.maxvnodes integer yes |
282 | .It kern.mbuf node not applicable | | 296 | .It kern.mbuf node not applicable |
283 | .It kern.memlock integer no | | 297 | .It kern.memlock integer no |
284 | .It kern.memlock_range integer no | | 298 | .It kern.memlock_range integer no |
285 | .It kern.memory_protection integer no | | 299 | .It kern.memory_protection integer no |
286 | .It kern.module node not applicable | | 300 | .It kern.module node not applicable |
287 | .It kern.monotonic_clock integer no | | 301 | .It kern.monotonic_clock integer no |
288 | .It kern.mqueue node not applicable | | 302 | .It kern.mqueue node not applicable |
289 | .It kern.msgbuf integer no | | 303 | .It kern.msgbuf integer no |
290 | .It kern.msgbufsize integer no | | 304 | .It kern.msgbufsize integer no |
291 | .It kern.ngroups integer no | | 305 | .It kern.ngroups integer no |
292 | .\".It kern.no_sa_support integer yes | | 306 | .\".It kern.no_sa_support integer yes |
293 | .It kern.ntptime struct ntptimeval no | | 307 | .It kern.ntptime struct ntptimeval no |
294 | .It kern.osrelease string no | | 308 | .It kern.osrelease string no |
295 | .It kern.osrevision integer no | | 309 | .It kern.osrevision integer no |
296 | .It kern.ostype string no | | 310 | .It kern.ostype string no |
297 | .\".It kern.panic_now integer yes | | 311 | .\".It kern.panic_now integer yes |
298 | .It kern.pipe node not applicable | | 312 | .It kern.pipe node not applicable |
299 | .\" .It kern.posix node not applicable | | 313 | .\" .It kern.posix node not applicable |
300 | .It kern.posix1version integer no | | 314 | .It kern.posix1version integer no |
301 | .It kern.posix_aio integer no | | 315 | .It kern.posix_aio integer no |
302 | .It kern.posix_barriers integer no | | 316 | .It kern.posix_barriers integer no |
303 | .It kern.posix_reader_writer_locks integer no | | 317 | .It kern.posix_reader_writer_locks integer no |
304 | .\".It kern.posix_sched integer yes | | 318 | .\".It kern.posix_sched integer yes |
305 | .It kern.posix_semaphores integer no | | 319 | .It kern.posix_semaphores integer no |
306 | .It kern.posix_spin_locks integer no | | 320 | .It kern.posix_spin_locks integer no |
307 | .It kern.posix_threads integer no | | 321 | .It kern.posix_threads integer no |
308 | .It kern.posix_timers integer no | | 322 | .It kern.posix_timers integer no |
309 | .It kern.proc struct kinfo_proc no | | 323 | .It kern.proc struct kinfo_proc no |
310 | .It kern.proc2 struct kinfo_proc2 no | | 324 | .It kern.proc2 struct kinfo_proc2 no |
311 | .It kern.proc_args string no | | 325 | .It kern.proc_args string no |
312 | .It kern.profiling node not applicable | | 326 | .It kern.profiling node not applicable |
313 | .\".It kern.pset node not applicable | | 327 | .\".It kern.pset node not applicable |
314 | .It kern.rawpartition integer no | | 328 | .It kern.rawpartition integer no |
315 | .It kern.root_device string no | | 329 | .It kern.root_device string no |
316 | .It kern.root_partition integer no | | 330 | .It kern.root_partition integer no |
317 | .It kern.rtc_offset integer yes | | 331 | .It kern.rtc_offset integer yes |
318 | .It kern.saved_ids integer no | | 332 | .It kern.saved_ids integer no |
319 | .It kern.sbmax integer yes | | 333 | .It kern.sbmax integer yes |
320 | .\".It kern.sched node not applicable | | 334 | .\".It kern.sched node not applicable |
321 | .It kern.securelevel integer raise only | | 335 | .It kern.securelevel integer raise only |
322 | .It kern.somaxkva integer yes | | 336 | .It kern.somaxkva integer yes |
323 | .It kern.synchronized_io integer no | | 337 | .It kern.synchronized_io integer no |
324 | .It kern.timecounter node not applicable | | 338 | .It kern.timecounter node not applicable |
325 | .It kern.timex struct no | | 339 | .It kern.timex struct no |
326 | .It kern.tkstat node not applicable | | 340 | .It kern.tkstat node not applicable |
327 | .It kern.urandom integer no | | 341 | .It kern.urandom integer no |
328 | .It kern.usercrypto integer yes | | 342 | .It kern.usercrypto integer yes |
329 | .It kern.userasymcrypto integer yes | | 343 | .It kern.userasymcrypto integer yes |
330 | .It kern.veriexec node not applicable | | 344 | .It kern.veriexec node not applicable |
331 | .It kern.version string no | | 345 | .It kern.version string no |
332 | .It kern.vnode struct vnode no | | 346 | .It kern.vnode struct vnode no |
333 | .El | | 347 | .El |
334 | .Bl -tag -width "123456" | | 348 | .Bl -tag -width "123456" |
335 | .It Li kern.aio_listio_max | | 349 | .It Li kern.aio_listio_max |
336 | The maximum number of asynchronous | | 350 | The maximum number of asynchronous |
337 | .Tn I/O | | 351 | .Tn I/O |
338 | operations in a single list I/O call. | | 352 | operations in a single list I/O call. |
339 | Like with all variables related to | | 353 | Like with all variables related to |
340 | .Xr aio 3 , | | 354 | .Xr aio 3 , |
341 | the variable may be created and removed dynamically | | 355 | the variable may be created and removed dynamically |
342 | upon loading or unloading the corresponding kernel module. | | 356 | upon loading or unloading the corresponding kernel module. |
343 | .It Li kern.aio_max | | 357 | .It Li kern.aio_max |
344 | The maximum number of asynchronous I/O operations. | | 358 | The maximum number of asynchronous I/O operations. |
345 | .It Li kern.arandom | | 359 | .It Li kern.arandom |
346 | This variable picks a random number each time it is queried. | | 360 | This variable picks a random number each time it is queried. |
347 | The used random number generator | | 361 | The used random number generator |
348 | .Pq Tn RNG | | 362 | .Pq Tn RNG |
349 | is based on | | 363 | is based on |
350 | .Xr arc4random 3 . | | 364 | .Xr arc4random 3 . |
351 | .It Li kern.argmax ( KERN_ARGMAX ) | | 365 | .It Li kern.argmax ( KERN_ARGMAX ) |
352 | The maximum bytes of argument to | | 366 | The maximum bytes of argument to |
353 | .Xr execve 2 . | | 367 | .Xr execve 2 . |
354 | .It Li kern.boothowto | | 368 | .It Li kern.boothowto |
355 | Flags passed from the boot loader; see | | 369 | Flags passed from the boot loader; see |
356 | .Xr reboot 2 | | 370 | .Xr reboot 2 |
357 | for the meanings of the flags. | | 371 | for the meanings of the flags. |
358 | .It Li kern.boottime ( KERN_BOOTTIME ) | | 372 | .It Li kern.boottime ( KERN_BOOTTIME ) |
359 | A | | 373 | A |
360 | .Va struct timeval | | 374 | .Va struct timeval |
361 | structure is returned. | | 375 | structure is returned. |
362 | This structure contains the time that the system was booted. | | 376 | This structure contains the time that the system was booted. |
363 | .\" .It Li kern.bufq | | 377 | .\" .It Li kern.bufq |
364 | .\" XXX: Undocumented. | | 378 | .\" XXX: Undocumented. |
365 | .It Li kern.ccpu ( KERN_CCPU ) | | 379 | .It Li kern.ccpu ( KERN_CCPU ) |
366 | The scheduler exponential decay value. | | 380 | The scheduler exponential decay value. |
367 | .It Li kern.clockrate ( KERN_CLOCKRATE ) | | 381 | .It Li kern.clockrate ( KERN_CLOCKRATE ) |
368 | A | | 382 | A |
369 | .Va struct clockinfo | | 383 | .Va struct clockinfo |
370 | structure is returned. | | 384 | structure is returned. |
371 | This structure contains the clock, statistics clock and profiling clock | | 385 | This structure contains the clock, statistics clock and profiling clock |
372 | frequencies, the number of micro-seconds per hz tick, and the clock | | 386 | frequencies, the number of micro-seconds per hz tick, and the clock |
373 | skew rate. | | 387 | skew rate. |
374 | Refer to | | 388 | Refer to |
375 | .Xr hz 9 | | 389 | .Xr hz 9 |
376 | for additional details. | | 390 | for additional details. |
377 | .It Li kern.consdev ( KERN_CONSDEV ) | | 391 | .It Li kern.consdev ( KERN_CONSDEV ) |
378 | Console device. | | 392 | Console device. |
379 | .It Li kern.coredump | | 393 | .It Li kern.coredump |
380 | Settings related to set-id processes coredumps. | | 394 | Settings related to set-id processes coredumps. |
381 | By default, set-id processes do not dump core in situations where | | 395 | By default, set-id processes do not dump core in situations where |
382 | other processes would. | | 396 | other processes would. |
383 | The settings in this node allows an administrator to change this | | 397 | The settings in this node allows an administrator to change this |
384 | behavior. | | 398 | behavior. |
385 | .Pp | | 399 | .Pp |
386 | The third level name is | | 400 | The third level name is |
387 | .Dv kern.coredump.setid | | 401 | .Dv kern.coredump.setid |
388 | and fourth level variables are described below. | | 402 | and fourth level variables are described below. |
389 | .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent | | 403 | .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent |
390 | .It Sy Fourth level name Type Changeable | | 404 | .It Sy Fourth level name Type Changeable |
391 | .It kern.coredump.setid.dump integer yes | | 405 | .It kern.coredump.setid.dump integer yes |
392 | .It kern.coredump.setid.group integer yes | | 406 | .It kern.coredump.setid.group integer yes |
393 | .It kern.coredump.setid.mode integer yes | | 407 | .It kern.coredump.setid.mode integer yes |
394 | .It kern.coredump.setid.owner integer yes | | 408 | .It kern.coredump.setid.owner integer yes |
395 | .It kern.coredump.setid.path string yes | | 409 | .It kern.coredump.setid.path string yes |
396 | .El | | 410 | .El |
397 | .Bl -tag -width "123456" | | 411 | .Bl -tag -width "123456" |
398 | .It Li kern.coredump.setid.dump | | 412 | .It Li kern.coredump.setid.dump |
399 | If non-zero, set-id processes will dump core. | | 413 | If non-zero, set-id processes will dump core. |
400 | .It Li kern.coredump.setid.group | | 414 | .It Li kern.coredump.setid.group |
401 | The group-id for the set-id processes' coredump. | | 415 | The group-id for the set-id processes' coredump. |
402 | .It Li kern.coredump.setid.mode | | 416 | .It Li kern.coredump.setid.mode |
403 | The mode for the set-id processes' coredump. | | 417 | The mode for the set-id processes' coredump. |
404 | See | | 418 | See |
405 | .Xr chmod 1 . | | 419 | .Xr chmod 1 . |
406 | .It Li kern.coredump.setid.owner | | 420 | .It Li kern.coredump.setid.owner |
407 | The user-id that will be used as the owner of the set-id processes' | | 421 | The user-id that will be used as the owner of the set-id processes' |
408 | coredump. | | 422 | coredump. |
409 | .It Li kern.coredump.setid.path | | 423 | .It Li kern.coredump.setid.path |
410 | The path to which set-id processes' coredumps will be saved to. | | 424 | The path to which set-id processes' coredumps will be saved to. |
411 | Same syntax as kern.defcorename. | | 425 | Same syntax as kern.defcorename. |
412 | .El | | 426 | .El |
413 | .It Li kern.cp_id ( KERN_CP_ID ) | | 427 | .It Li kern.cp_id ( KERN_CP_ID ) |
414 | Mapping of CPU number to CPU id. | | 428 | Mapping of CPU number to CPU id. |
415 | .It Li kern.cp_time ( KERN_CP_TIME ) | | 429 | .It Li kern.cp_time ( KERN_CP_TIME ) |
416 | Returns an array of CPUSTATES uint64_ts. | | 430 | Returns an array of CPUSTATES uint64_ts. |
417 | This array contains the | | 431 | This array contains the |
418 | number of clock ticks spent in different CPU states. | | 432 | number of clock ticks spent in different CPU states. |
419 | On multi-processor systems, the sum across all CPUs is returned unless | | 433 | On multi-processor systems, the sum across all CPUs is returned unless |
420 | appropriate space is given for one data set for each CPU. | | 434 | appropriate space is given for one data set for each CPU. |
421 | Data for a specific CPU can also be obtained by adding the number of the | | 435 | Data for a specific CPU can also be obtained by adding the number of the |
422 | CPU at the end of the MIB, enlarging it by one. | | 436 | CPU at the end of the MIB, enlarging it by one. |
423 | .It Li kern.cryptodevallowsoft | | 437 | .It Li kern.cryptodevallowsoft |
424 | This variable controls userland access to hardware versus software transforms | | 438 | This variable controls userland access to hardware versus software transforms |
425 | in the | | 439 | in the |
426 | .Xr crypto 4 | | 440 | .Xr crypto 4 |
427 | system. | | 441 | system. |
428 | The available values are as follows: | | 442 | The available values are as follows: |
429 | .Bl -tag -width XX0 -offset indent | | 443 | .Bl -tag -width XX0 -offset indent |
430 | .It Dv \*[Lt] 0 | | 444 | .It Dv \*[Lt] 0 |
431 | Always force userlevel requests to use software transforms. | | 445 | Always force userlevel requests to use software transforms. |
432 | .It Dv = 0 | | 446 | .It Dv = 0 |
433 | If present, use hardware and grant userlevel requests for | | 447 | If present, use hardware and grant userlevel requests for |
434 | non-accelerated transforms (handling the latter in software). | | 448 | non-accelerated transforms (handling the latter in software). |
435 | .It Dv \*[Gt] 0 | | 449 | .It Dv \*[Gt] 0 |
436 | Allow user requests only for transforms which are hardware-accelerated. | | 450 | Allow user requests only for transforms which are hardware-accelerated. |
437 | .El | | 451 | .El |
438 | .It Li kern.defcorename ( KERN_DEFCORENAME ) | | 452 | .It Li kern.defcorename ( KERN_DEFCORENAME ) |
439 | Default template for the name of core dump files (see also | | 453 | Default template for the name of core dump files (see also |
440 | .Li proc.pid.corename | | 454 | .Li proc.pid.corename |
441 | in the per-process variables | | 455 | in the per-process variables |
442 | .Li proc.* , | | 456 | .Li proc.* , |
443 | and | | 457 | and |
444 | .Xr core 5 | | 458 | .Xr core 5 |
445 | for format of this template). | | 459 | for format of this template). |
446 | The default value is | | 460 | The default value is |
447 | .Nm %n.core | | 461 | .Nm %n.core |
448 | and can be changed with the kernel configuration option | | 462 | and can be changed with the kernel configuration option |
449 | .Cd options DEFCORENAME | | 463 | .Cd options DEFCORENAME |
450 | (see | | 464 | (see |
451 | .Xr options 4 | | 465 | .Xr options 4 |
452 | ). | | 466 | ). |
453 | .It Li kern.detachall | | 467 | .It Li kern.detachall |
454 | Detach all devices at shutdown. | | 468 | Detach all devices at shutdown. |
455 | .It Li kern.domainname ( KERN_DOMAINNAME ) | | 469 | .It Li kern.domainname ( KERN_DOMAINNAME ) |
456 | Get or set the YP domain name. | | 470 | Get or set the YP domain name. |
457 | .It Li kern.drivers ( KERN_DRIVERS ) | | 471 | .It Li kern.drivers ( KERN_DRIVERS ) |
458 | Return an array of | | 472 | Return an array of |
459 | .Va struct kinfo_drivers | | 473 | .Va struct kinfo_drivers |
460 | that contains the name and major device numbers of all the device drivers | | 474 | that contains the name and major device numbers of all the device drivers |
461 | in the current kernel. | | 475 | in the current kernel. |
462 | The | | 476 | The |
463 | .Va d_name | | 477 | .Va d_name |
464 | field is always a NUL terminated string. | | 478 | field is always a NUL terminated string. |
465 | The | | 479 | The |
466 | .Va d_bmajor | | 480 | .Va d_bmajor |
467 | field will be set to \-1 if the driver doesn't have a block device. | | 481 | field will be set to \-1 if the driver doesn't have a block device. |
468 | .It Li kern.dump_on_panic ( KERN_DUMP_ON_PANIC ) | | 482 | .It Li kern.dump_on_panic ( KERN_DUMP_ON_PANIC ) |
469 | Perform a crash dump on system | | 483 | Perform a crash dump on system |
470 | .Xr panic 9 . | | 484 | .Xr panic 9 . |
471 | .It Li kern.file ( KERN_FILE ) | | 485 | .It Li kern.file ( KERN_FILE ) |
472 | Return the entire file table. | | 486 | Return the entire file table. |
473 | The returned data consists of a single | | 487 | The returned data consists of a single |
474 | .Va struct filelist | | 488 | .Va struct filelist |
475 | followed by an array of | | 489 | followed by an array of |
476 | .Va struct file , | | 490 | .Va struct file , |
477 | whose size depends on the current number of such objects in the system. | | 491 | whose size depends on the current number of such objects in the system. |
478 | .It Li kern.forkfsleep ( KERN_FORKFSLEEP ) | | 492 | .It Li kern.forkfsleep ( KERN_FORKFSLEEP ) |
479 | If | | 493 | If |
480 | .Xr fork 2 | | 494 | .Xr fork 2 |
481 | system call fails due to limit on number of processes (either | | 495 | system call fails due to limit on number of processes (either |
482 | the global maxproc limit or user's one), wait for this many | | 496 | the global maxproc limit or user's one), wait for this many |
483 | milliseconds before returning | | 497 | milliseconds before returning |
484 | .Er EAGAIN | | 498 | .Er EAGAIN |
485 | error to process. | | 499 | error to process. |
486 | Useful to keep heavily forking runaway processes in bay. | | 500 | Useful to keep heavily forking runaway processes in bay. |
487 | Default zero (no sleep). | | 501 | Default zero (no sleep). |
488 | Maximum is 20 seconds. | | 502 | Maximum is 20 seconds. |
489 | .It Li kern.fscale ( KERN_FSCALE ) | | 503 | .It Li kern.fscale ( KERN_FSCALE ) |
490 | The kernel fixed-point scale factor. | | 504 | The kernel fixed-point scale factor. |
491 | .It Li kern.fsync ( KERN_FSYNC ) | | 505 | .It Li kern.fsync ( KERN_FSYNC ) |
492 | Return 1 if the POSIX 1003.1b File Synchronization Option is available | | 506 | Return 1 if the POSIX 1003.1b File Synchronization Option is available |
493 | on this system, | | 507 | on this system, |
494 | otherwise 0. | | 508 | otherwise 0. |
495 | .It Li kern.hardclock_ticks ( KERN_HARDCLOCK_TICKS ) | | 509 | .It Li kern.hardclock_ticks ( KERN_HARDCLOCK_TICKS ) |
496 | Returns the number of | | 510 | Returns the number of |
497 | .Xr hardclock 9 | | 511 | .Xr hardclock 9 |
498 | ticks. | | 512 | ticks. |
499 | .It Li kern.hostid ( KERN_HOSTID ) | | 513 | .It Li kern.hostid ( KERN_HOSTID ) |
500 | Get or set the host identifier. | | 514 | Get or set the host identifier. |
501 | This is aimed to replace the legacy | | 515 | This is aimed to replace the legacy |
502 | .Xr gethostid 3 | | 516 | .Xr gethostid 3 |
503 | and | | 517 | and |
504 | .Xr sethostid 3 | | 518 | .Xr sethostid 3 |
505 | system calls. | | 519 | system calls. |
506 | .It Li kern.hostname ( KERN_HOSTNAME ) | | 520 | .It Li kern.hostname ( KERN_HOSTNAME ) |
507 | Get or set the | | 521 | Get or set the |
508 | .Xr hostname 1 . | | 522 | .Xr hostname 1 . |
509 | .It Li kern.iov_max ( KERN_IOV_MAX ) | | 523 | .It Li kern.iov_max ( KERN_IOV_MAX ) |
510 | Return the maximum number of | | 524 | Return the maximum number of |
511 | .Va iovec | | 525 | .Va iovec |
512 | structures that a process has available for use with | | 526 | structures that a process has available for use with |
513 | .Xr preadv 2 , | | 527 | .Xr preadv 2 , |
514 | .Xr pwritev 2 , | | 528 | .Xr pwritev 2 , |
515 | .Xr readv 2 , | | 529 | .Xr readv 2 , |
516 | .Xr recvmsg 2 , | | 530 | .Xr recvmsg 2 , |
517 | .Xr sendmsg 2 | | 531 | .Xr sendmsg 2 |
518 | and | | 532 | and |
519 | .Xr writev 2 . | | 533 | .Xr writev 2 . |
520 | .It Li kern.ipc ( KERN_SYSVIPC ) | | 534 | .It Li kern.ipc ( KERN_SYSVIPC ) |
521 | Return information about the SysV IPC parameters. | | 535 | Return information about the SysV IPC parameters. |
522 | The third level names for the ipc variables are detailed below. | | 536 | The third level names for the ipc variables are detailed below. |
523 | .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent | | 537 | .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent |
524 | .It Sy Third level name Type Changeable | | 538 | .It Sy Third level name Type Changeable |
525 | .It kern.ipc.sysvmsg integer no | | 539 | .It kern.ipc.sysvmsg integer no |
526 | .It kern.ipc.sysvsem integer no | | 540 | .It kern.ipc.sysvsem integer no |
527 | .It kern.ipc.sysvshm integer no | | 541 | .It kern.ipc.sysvshm integer no |
528 | .It kern.ipc.sysvipc_info struct no | | 542 | .It kern.ipc.sysvipc_info struct no |
529 | .It kern.ipc.shmmax integer yes | | 543 | .It kern.ipc.shmmax integer yes |
530 | .It kern.ipc.shmmni integer yes | | 544 | .It kern.ipc.shmmni integer yes |
531 | .It kern.ipc.shmseg integer yes | | 545 | .It kern.ipc.shmseg integer yes |
532 | .It kern.ipc.shmmaxpgs integer yes | | 546 | .It kern.ipc.shmmaxpgs integer yes |
533 | .It kern.ipc.shm_use_phys integer yes | | 547 | .It kern.ipc.shm_use_phys integer yes |
534 | .It kern.ipc.msgmni integer yes | | 548 | .It kern.ipc.msgmni integer yes |
535 | .It kern.ipc.msgseg integer yes | | 549 | .It kern.ipc.msgseg integer yes |
536 | .It kern.ipc.semmni integer yes | | 550 | .It kern.ipc.semmni integer yes |
537 | .It kern.ipc.semmns integer yes | | 551 | .It kern.ipc.semmns integer yes |
538 | .It kern.ipc.semmnu integer yes | | 552 | .It kern.ipc.semmnu integer yes |
539 | .El | | 553 | .El |
540 | .Bl -tag -width "123456" | | 554 | .Bl -tag -width "123456" |
541 | .It Li kern.ipc.sysvmsg ( KERN_SYSVIPC_MSG ) | | 555 | .It Li kern.ipc.sysvmsg ( KERN_SYSVIPC_MSG ) |
542 | Returns 1 if System V style message queue functionality is available | | 556 | Returns 1 if System V style message queue functionality is available |
543 | on this system, | | 557 | on this system, |
544 | otherwise 0. | | 558 | otherwise 0. |
545 | .It Li kern.ipc.sysvsem ( KERN_SYSVIPC_SEM ) | | 559 | .It Li kern.ipc.sysvsem ( KERN_SYSVIPC_SEM ) |
546 | Returns 1 if System V style semaphore functionality is available | | 560 | Returns 1 if System V style semaphore functionality is available |
547 | on this system, | | 561 | on this system, |
548 | otherwise 0. | | 562 | otherwise 0. |
549 | .It Li kern.ipc.sysvshm ( KERN_SYSVIPC_SHM ) | | 563 | .It Li kern.ipc.sysvshm ( KERN_SYSVIPC_SHM ) |
550 | Returns 1 if System V style share memory functionality is available | | 564 | Returns 1 if System V style share memory functionality is available |
551 | on this system, | | 565 | on this system, |
552 | otherwise 0. | | 566 | otherwise 0. |
553 | .It Li kern.ipc.sysvipc_info ( KERN_SYSVIPC_INFO ) | | 567 | .It Li kern.ipc.sysvipc_info ( KERN_SYSVIPC_INFO ) |
554 | Return System V style IPC configuration and run-time information. | | 568 | Return System V style IPC configuration and run-time information. |
555 | The fourth level name selects the System V style IPC facility. | | 569 | The fourth level name selects the System V style IPC facility. |
556 | .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent | | 570 | .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent |
557 | .It Sy Fourth level name Type | | 571 | .It Sy Fourth level name Type |
558 | .It KERN_SYSVIPC_MSG_INFO struct msg_sysctl_info | | 572 | .It KERN_SYSVIPC_MSG_INFO struct msg_sysctl_info |
559 | .It KERN_SYSVIPC_SEM_INFO struct sem_sysctl_info | | 573 | .It KERN_SYSVIPC_SEM_INFO struct sem_sysctl_info |
560 | .It KERN_SYSVIPC_SHM_INFO struct shm_sysctl_info | | 574 | .It KERN_SYSVIPC_SHM_INFO struct shm_sysctl_info |
561 | .El | | 575 | .El |
562 | .Pp | | 576 | .Pp |
563 | .Bl -tag -width "123456" | | 577 | .Bl -tag -width "123456" |
564 | .It Li KERN_SYSVIPC_MSG_INFO | | 578 | .It Li KERN_SYSVIPC_MSG_INFO |
565 | Return information on the System V style message facility. | | 579 | Return information on the System V style message facility. |
566 | The | | 580 | The |
567 | .Sy msg_sysctl_info | | 581 | .Sy msg_sysctl_info |
568 | structure is defined in | | 582 | structure is defined in |
569 | .In sys/msg.h . | | 583 | .In sys/msg.h . |
570 | .It Li KERN_SYSVIPC_SEM_INFO | | 584 | .It Li KERN_SYSVIPC_SEM_INFO |
571 | Return information on the System V style semaphore facility. | | 585 | Return information on the System V style semaphore facility. |
572 | The | | 586 | The |
573 | .Sy sem_sysctl_info | | 587 | .Sy sem_sysctl_info |
574 | structure is defined in | | 588 | structure is defined in |
575 | .In sys/sem.h . | | 589 | .In sys/sem.h . |
576 | .It Li KERN_SYSVIPC_SHM_INFO | | 590 | .It Li KERN_SYSVIPC_SHM_INFO |
577 | Return information on the System V style shared memory facility. | | 591 | Return information on the System V style shared memory facility. |
578 | The | | 592 | The |
579 | .Sy shm_sysctl_info | | 593 | .Sy shm_sysctl_info |
580 | structure is defined in | | 594 | structure is defined in |
581 | .In sys/shm.h . | | 595 | .In sys/shm.h . |
582 | .El | | 596 | .El |
583 | .It Li kern.ipc.shmmax ( KERN_SYSVIPC_SHMMAX ) | | 597 | .It Li kern.ipc.shmmax ( KERN_SYSVIPC_SHMMAX ) |
584 | Max shared memory segment size in bytes. | | 598 | Max shared memory segment size in bytes. |
585 | .It Li kern.ipc.shmmni ( KERN_SYSVIPC_SHMMNI ) | | 599 | .It Li kern.ipc.shmmni ( KERN_SYSVIPC_SHMMNI ) |
586 | Max number of shared memory identifiers. | | 600 | Max number of shared memory identifiers. |
587 | .It Li kern.ipc.shmseg ( KERN_SYSVIPC_SHMSEG ) | | 601 | .It Li kern.ipc.shmseg ( KERN_SYSVIPC_SHMSEG ) |
588 | Max shared memory segments per process. | | 602 | Max shared memory segments per process. |
589 | .It Li kern.ipc.shmmaxpgs ( KERN_SYSVIPC_SHMMAXPGS ) | | 603 | .It Li kern.ipc.shmmaxpgs ( KERN_SYSVIPC_SHMMAXPGS ) |
590 | Max amount of shared memory in pages. | | 604 | Max amount of shared memory in pages. |
591 | .It Li kern.ipc.shm_use_phys ( KERN_SYSVIPC_SHMUSEPHYS ) | | 605 | .It Li kern.ipc.shm_use_phys ( KERN_SYSVIPC_SHMUSEPHYS ) |
592 | Locking of shared memory in physical memory. | | 606 | Locking of shared memory in physical memory. |
593 | If 0, memory can be swapped | | 607 | If 0, memory can be swapped |
594 | out, otherwise it will be locked in physical memory. | | 608 | out, otherwise it will be locked in physical memory. |
595 | .It Li kern.ipc.msgmni | | 609 | .It Li kern.ipc.msgmni |
596 | Max number of message queue identifiers. | | 610 | Max number of message queue identifiers. |
597 | .It Li kern.ipc.msgseg | | 611 | .It Li kern.ipc.msgseg |
598 | Max number of number of message segments. | | 612 | Max number of number of message segments. |
599 | .It Li kern.ipc.semmni | | 613 | .It Li kern.ipc.semmni |
600 | Max number of number of semaphore identifiers. | | 614 | Max number of number of semaphore identifiers. |
601 | .It Li kern.ipc.semmns | | 615 | .It Li kern.ipc.semmns |
602 | Max number of number of semaphores in system. | | 616 | Max number of number of semaphores in system. |
603 | .It Li kern.ipc.semmnu | | 617 | .It Li kern.ipc.semmnu |
604 | Max number of undo structures in system. | | 618 | Max number of undo structures in system. |
605 | .El | | 619 | .El |
606 | .It Li kern.job_control ( KERN_JOB_CONTROL ) | | 620 | .It Li kern.job_control ( KERN_JOB_CONTROL ) |
607 | Return 1 if job control is available on this system, otherwise 0. | | 621 | Return 1 if job control is available on this system, otherwise 0. |
608 | .It Li kern.labeloffset ( KERN_LABELOFFSET ) | | 622 | .It Li kern.labeloffset ( KERN_LABELOFFSET ) |
609 | The offset within the sector specified by KERN_LABELSECTOR of the | | 623 | The offset within the sector specified by KERN_LABELSECTOR of the |
610 | .Xr disklabel 5 . | | 624 | .Xr disklabel 5 . |
611 | .It Li kern.labelsector ( KERN_LABELSECTOR ) | | 625 | .It Li kern.labelsector ( KERN_LABELSECTOR ) |
612 | The sector number containing the | | 626 | The sector number containing the |
613 | .Xr disklabel 5 . | | 627 | .Xr disklabel 5 . |
614 | .It Li kern.login_name_max ( KERN_LOGIN_NAME_MAX ) | | 628 | .It Li kern.login_name_max ( KERN_LOGIN_NAME_MAX ) |
615 | The size of the storage required for a login name, in bytes, | | 629 | The size of the storage required for a login name, in bytes, |
616 | including the terminating NUL. | | 630 | including the terminating NUL. |
617 | .It Li kern.logsigexit ( KERN_LOGSIGEXIT ) | | 631 | .It Li kern.logsigexit ( KERN_LOGSIGEXIT ) |
618 | If this flag is non-zero, the kernel will | | 632 | If this flag is non-zero, the kernel will |
619 | .Xr log 9 | | 633 | .Xr log 9 |
620 | all process exits due to signals which create a | | 634 | all process exits due to signals which create a |
621 | .Xr core 5 | | 635 | .Xr core 5 |
622 | file, and whether the coredump was created. | | 636 | file, and whether the coredump was created. |
623 | .It Li kern.mapped_files ( KERN_MAPPED_FILES ) | | 637 | .It Li kern.mapped_files ( KERN_MAPPED_FILES ) |
624 | Returns 1 if the POSIX 1003.1b Memory Mapped Files Option is available | | 638 | Returns 1 if the POSIX 1003.1b Memory Mapped Files Option is available |
625 | on this system, | | 639 | on this system, |
626 | otherwise 0. | | 640 | otherwise 0. |
627 | .It Li kern.maxfiles ( KERN_MAXFILES ) | | 641 | .It Li kern.maxfiles ( KERN_MAXFILES ) |
628 | The maximum number of open files that may be open in the system. | | 642 | The maximum number of open files that may be open in the system. |
629 | .It Li kern.maxpartitions ( KERN_MAXPARTITIONS ) | | 643 | .It Li kern.maxpartitions ( KERN_MAXPARTITIONS ) |
630 | The maximum number of partitions allowed per disk. | | 644 | The maximum number of partitions allowed per disk. |
631 | .It Li kern.maxphys ( KERN_MAXPHYS ) | | 645 | .It Li kern.maxphys ( KERN_MAXPHYS ) |
632 | Maximum raw I/O transfer size. | | 646 | Maximum raw I/O transfer size. |
633 | .It Li kern.maxproc ( KERN_MAXPROC ) | | 647 | .It Li kern.maxproc ( KERN_MAXPROC ) |
634 | The maximum number of simultaneous processes the system will allow. | | 648 | The maximum number of simultaneous processes the system will allow. |
635 | .It Li kern.maxptys ( KERN_MAXPTYS ) | | 649 | .It Li kern.maxptys ( KERN_MAXPTYS ) |
636 | The maximum number of pseudo terminals. | | 650 | The maximum number of pseudo terminals. |
637 | This value can be both raised and lowered, though it cannot | | 651 | This value can be both raised and lowered, though it cannot |
638 | be set lower than number of currently used ptys. | | 652 | be set lower than number of currently used ptys. |
639 | See also | | 653 | See also |
640 | .Xr pty 4 . | | 654 | .Xr pty 4 . |
641 | .It Li kern.maxvnodes ( KERN_MAXVNODES ) | | 655 | .It Li kern.maxvnodes ( KERN_MAXVNODES ) |
642 | The maximum number of vnodes available on the system. | | 656 | The maximum number of vnodes available on the system. |
643 | This can only be raised. | | 657 | This can only be raised. |
644 | .It Li kern.mbuf ( KERN_MBUF ) | | 658 | .It Li kern.mbuf ( KERN_MBUF ) |
645 | Return information about the mbuf control variables. | | 659 | Return information about the mbuf control variables. |
646 | Mbufs are data structures which store network packets and other data | | 660 | Mbufs are data structures which store network packets and other data |
647 | structures in the networking code, see | | 661 | structures in the networking code, see |
648 | .Xr mbuf 9 . | | 662 | .Xr mbuf 9 . |
649 | The third level names for the mbuf variables are detailed below. | | 663 | The third level names for the mbuf variables are detailed below. |
650 | The changeable column shows whether a process with appropriate | | 664 | The changeable column shows whether a process with appropriate |
651 | privilege may change the value. | | 665 | privilege may change the value. |
652 | .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent | | 666 | .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent |
653 | .It Sy Third level name Type Changeable | | 667 | .It Sy Third level name Type Changeable |
654 | .\" XXX Changeable? really? | | 668 | .\" XXX Changeable? really? |
655 | .It kern.mbuf.mblowat integer yes | | 669 | .It kern.mbuf.mblowat integer yes |
656 | .It kern.mbuf.mclbytes integer yes | | 670 | .It kern.mbuf.mclbytes integer yes |
657 | .It kern.mbuf.mcllowat integer yes | | 671 | .It kern.mbuf.mcllowat integer yes |
658 | .It kern.mbuf.msize integer yes | | 672 | .It kern.mbuf.msize integer yes |
659 | .It kern.mbuf.nmbclusters integer yes | | 673 | .It kern.mbuf.nmbclusters integer yes |
660 | .El | | 674 | .El |
661 | .Pp | | 675 | .Pp |
662 | The variables are as follows: | | 676 | The variables are as follows: |
663 | .Bl -tag -width "123456" | | 677 | .Bl -tag -width "123456" |
664 | .It Li kern.mbuf.mblowat ( MBUF_MBLOWAT ) | | 678 | .It Li kern.mbuf.mblowat ( MBUF_MBLOWAT ) |
665 | The mbuf low water mark. | | 679 | The mbuf low water mark. |
666 | .It Li kern.mbuf.mclbytes ( MBUF_MCLBYTES ) | | 680 | .It Li kern.mbuf.mclbytes ( MBUF_MCLBYTES ) |
667 | The mbuf cluster size. | | 681 | The mbuf cluster size. |
668 | .It Li kern.mbuf.mcllowat ( MBUF_MCLLOWAT ) | | 682 | .It Li kern.mbuf.mcllowat ( MBUF_MCLLOWAT ) |
669 | The mbuf cluster low water mark. | | 683 | The mbuf cluster low water mark. |
670 | .It Li kern.mbuf.msize ( MBUF_MSIZE ) | | 684 | .It Li kern.mbuf.msize ( MBUF_MSIZE ) |
671 | The mbuf base size. | | 685 | The mbuf base size. |
672 | .It Li kern.mbuf.nmbclusters ( MBUF_NMBCLUSTERS ) | | 686 | .It Li kern.mbuf.nmbclusters ( MBUF_NMBCLUSTERS ) |
673 | The limit on the number of mbuf clusters. | | 687 | The limit on the number of mbuf clusters. |
674 | The variable can only be increased, and only increased on machines with | | 688 | The variable can only be increased, and only increased on machines with |
675 | direct-mapped pool pages. | | 689 | direct-mapped pool pages. |
676 | .El | | 690 | .El |
677 | .It Li kern.memlock ( KERN_MEMLOCK ) | | 691 | .It Li kern.memlock ( KERN_MEMLOCK ) |
678 | Returns 1 if the POSIX 1003.1b Process Memory Locking Option is available | | 692 | Returns 1 if the POSIX 1003.1b Process Memory Locking Option is available |
679 | on this system, | | 693 | on this system, |
680 | otherwise 0. | | 694 | otherwise 0. |
681 | .It Li kern.memlock_range ( KERN_MEMLOCK_RANGE ) | | 695 | .It Li kern.memlock_range ( KERN_MEMLOCK_RANGE ) |
682 | Returns 1 if the POSIX 1003.1b Range Memory Locking Option is available | | 696 | Returns 1 if the POSIX 1003.1b Range Memory Locking Option is available |
683 | on this system, | | 697 | on this system, |
684 | otherwise 0. | | 698 | otherwise 0. |
685 | .It Li kern.memory_protection ( KERN_MEMORY_PROTECTION ) | | 699 | .It Li kern.memory_protection ( KERN_MEMORY_PROTECTION ) |
686 | Returns 1 if the POSIX 1003.1b Memory Protection Option is available | | 700 | Returns 1 if the POSIX 1003.1b Memory Protection Option is available |
687 | on this system, | | 701 | on this system, |
688 | otherwise 0. | | 702 | otherwise 0. |
689 | .It Li kern.module | | 703 | .It Li kern.module |
690 | Settings related to kernel modules. | | 704 | Settings related to kernel modules. |
691 | The third level names for the settings are described below. | | 705 | The third level names for the settings are described below. |
692 | .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent | | 706 | .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent |
693 | .It Sy Third level name Type Changeable | | 707 | .It Sy Third level name Type Changeable |
694 | .It kern.module.autoload integer yes | | 708 | .It kern.module.autoload integer yes |
695 | .It kern.module.verbose integer yes | | 709 | .It kern.module.verbose integer yes |
696 | .El | | 710 | .El |
697 | .Pp | | 711 | .Pp |
698 | The variables are as follows: | | 712 | The variables are as follows: |
699 | .Bl -tag -width "123456" | | 713 | .Bl -tag -width "123456" |
700 | .It Li kern.module.autoload | | 714 | .It Li kern.module.autoload |
701 | A boolean that controls whether kernel modules are loaded automatically. | | 715 | A boolean that controls whether kernel modules are loaded automatically. |
702 | See | | 716 | See |
703 | .Xr module 7 | | 717 | .Xr module 7 |
704 | for additional details. | | 718 | for additional details. |
705 | .It Li kern.module.verbose | | 719 | .It Li kern.module.verbose |
706 | A boolean that enables or disables verbose | | 720 | A boolean that enables or disables verbose |
707 | debug messages related to kernel modules. | | 721 | debug messages related to kernel modules. |
708 | .El | | 722 | .El |
709 | .It Li kern.monotonic_clock ( KERN_MONOTONIC_CLOCK ) | | 723 | .It Li kern.monotonic_clock ( KERN_MONOTONIC_CLOCK ) |
710 | Returns the standard version the implementation of the POSIX 1003.1b | | 724 | Returns the standard version the implementation of the POSIX 1003.1b |
711 | Monotonic Clock Option conforms to, | | 725 | Monotonic Clock Option conforms to, |
712 | otherwise 0. | | 726 | otherwise 0. |
713 | .It Li kern.mqueue | | 727 | .It Li kern.mqueue |
714 | Settings related to | | 728 | Settings related to |
715 | .Tn POSIX | | 729 | .Tn POSIX |
716 | message queues; see | | 730 | message queues; see |
717 | .Xr mqueue 3 . | | 731 | .Xr mqueue 3 . |
718 | This node is created dynamically when | | 732 | This node is created dynamically when |
719 | the corresponding kernel module is loaded. | | 733 | the corresponding kernel module is loaded. |
720 | The third level names for the settings are described below. | | 734 | The third level names for the settings are described below. |
721 | .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent | | 735 | .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent |
722 | .It Sy Third level name Type Changeable | | 736 | .It Sy Third level name Type Changeable |
723 | .It kern.mqueue.mq_open_max integer yes | | 737 | .It kern.mqueue.mq_open_max integer yes |
724 | .It kern.mqueue.mq_prio_max integer yes | | 738 | .It kern.mqueue.mq_prio_max integer yes |
725 | .It kern.mqueue.mq_max_msgsize integer yes | | 739 | .It kern.mqueue.mq_max_msgsize integer yes |
726 | .It kern.mqueue.mq_def_maxmsg integer yes | | 740 | .It kern.mqueue.mq_def_maxmsg integer yes |
727 | .It kern.mqueue.mq_max_maxmsg integer yes | | 741 | .It kern.mqueue.mq_max_maxmsg integer yes |
728 | .El | | 742 | .El |
729 | .Pp | | 743 | .Pp |
730 | The variables are: | | 744 | The variables are: |
731 | .Bl -tag -width "123456" | | 745 | .Bl -tag -width "123456" |
732 | .It Li kern.mqueue.mq_open_max | | 746 | .It Li kern.mqueue.mq_open_max |
733 | The maximum number of message queue descriptors any single process can open. | | 747 | The maximum number of message queue descriptors any single process can open. |
734 | .It Li kern.mqueue.mq_prio_max | | 748 | .It Li kern.mqueue.mq_prio_max |
735 | The maximum priority of a message. | | 749 | The maximum priority of a message. |
736 | .It Li kern.mqueue.mq_max_msgsize | | 750 | .It Li kern.mqueue.mq_max_msgsize |
737 | The maximum size of a message in a message queue. | | 751 | The maximum size of a message in a message queue. |
738 | .It Li kern.mqueue.mq_def_maxmsg | | 752 | .It Li kern.mqueue.mq_def_maxmsg |
739 | The default maximum message count. | | 753 | The default maximum message count. |
740 | .It Li kern.mqueue.mq_max_maxmsg | | 754 | .It Li kern.mqueue.mq_max_maxmsg |
741 | The maximum number of messages in a message queue. | | 755 | The maximum number of messages in a message queue. |
742 | .El | | 756 | .El |
743 | .It Li kern.msgbuf ( KERN_MSGBUF ) | | 757 | .It Li kern.msgbuf ( KERN_MSGBUF ) |
744 | The kernel message buffer, rotated so that the head of the circular kernel | | 758 | The kernel message buffer, rotated so that the head of the circular kernel |
745 | message buffer is at the start of the returned data. | | 759 | message buffer is at the start of the returned data. |
746 | The returned data may contain NUL bytes. | | 760 | The returned data may contain NUL bytes. |
747 | .It Li kern.msgbufsize ( KERN_MSGBUFSIZE ) | | 761 | .It Li kern.msgbufsize ( KERN_MSGBUFSIZE ) |
748 | The maximum number of characters that the kernel message buffer can hold. | | 762 | The maximum number of characters that the kernel message buffer can hold. |
749 | .It Li kern.ngroups ( KERN_NGROUPS ) | | 763 | .It Li kern.ngroups ( KERN_NGROUPS ) |
750 | The maximum number of supplemental groups. | | 764 | The maximum number of supplemental groups. |
751 | .\" .It Li kern.no_sa_support | | 765 | .\" .It Li kern.no_sa_support |
752 | .\" XXX: Undocumented. | | 766 | .\" XXX: Undocumented. |
753 | .It Li kern.ntptime ( KERN_NTPTIME ) | | 767 | .It Li kern.ntptime ( KERN_NTPTIME ) |
754 | A | | 768 | A |
755 | .Va struct ntptimeval | | 769 | .Va struct ntptimeval |
756 | structure is returned. | | 770 | structure is returned. |
757 | This structure contains data used by the | | 771 | This structure contains data used by the |
758 | .Xr ntpd 8 | | 772 | .Xr ntpd 8 |
759 | program. | | 773 | program. |
760 | .It Li kern.osrelease ( KERN_OSRELEASE ) | | 774 | .It Li kern.osrelease ( KERN_OSRELEASE ) |
761 | The system release string. | | 775 | The system release string. |
762 | .It Li kern.osrevision ( KERN_OSREV ) | | 776 | .It Li kern.osrevision ( KERN_OSREV ) |
763 | The system revision string. | | 777 | The system revision string. |
764 | .It Li kern.ostype ( KERN_OSTYPE ) | | 778 | .It Li kern.ostype ( KERN_OSTYPE ) |
765 | The system type string. | | 779 | The system type string. |
766 | .\".It Li kern.panic_now | | 780 | .\".It Li kern.panic_now |
767 | .\" XXX: Undocumented. | | 781 | .\" XXX: Undocumented. |
768 | .It Li kern.pipe ( KERN_PIPE ) | | 782 | .It Li kern.pipe ( KERN_PIPE ) |
769 | Pipe settings. | | 783 | Pipe settings. |
770 | The third level names for the integer pipe settings is detailed below. | | 784 | The third level names for the integer pipe settings is detailed below. |
771 | The changeable column shows whether a process with appropriate | | 785 | The changeable column shows whether a process with appropriate |
772 | privilege may change the value. | | 786 | privilege may change the value. |
773 | .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent | | 787 | .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent |
774 | .It Sy Third level name Type Changeable | | 788 | .It Sy Third level name Type Changeable |
775 | .It kern.pipe.kvasiz integer yes | | 789 | .It kern.pipe.kvasiz integer yes |
776 | .It kern.pipe.maxbigpipes integer yes | | 790 | .It kern.pipe.maxbigpipes integer yes |
777 | .It kern.pipe.maxkvasz integer yes | | 791 | .It kern.pipe.maxkvasz integer yes |
778 | .It kern.pipe.limitkva integer yes | | 792 | .It kern.pipe.limitkva integer yes |
779 | .It kern.pipe.nbigpipes integer yes | | 793 | .It kern.pipe.nbigpipes integer yes |
780 | .El | | 794 | .El |
781 | .Pp | | 795 | .Pp |
782 | The variables are as follows: | | 796 | The variables are as follows: |
783 | .Bl -tag -width "123456" | | 797 | .Bl -tag -width "123456" |
784 | .It Li kern.pipe.kvasiz ( KERN_PIPE_KVASIZ ) | | 798 | .It Li kern.pipe.kvasiz ( KERN_PIPE_KVASIZ ) |
785 | Amount of kernel memory consumed by pipe buffers. | | 799 | Amount of kernel memory consumed by pipe buffers. |
786 | .It Li kern.pipe.maxbigpipes ( KERN_PIPE_MAXBIGPIPES ) | | 800 | .It Li kern.pipe.maxbigpipes ( KERN_PIPE_MAXBIGPIPES ) |
787 | Maximum number of "big" pipes. | | 801 | Maximum number of "big" pipes. |
788 | .It Li kern.pipe.maxkvasz ( KERN_PIPE_MAXKVASZ ) | | 802 | .It Li kern.pipe.maxkvasz ( KERN_PIPE_MAXKVASZ ) |
789 | Maximum amount of kernel memory to be used for pipes. | | 803 | Maximum amount of kernel memory to be used for pipes. |
790 | .It Li kern.pipe.limitkva ( KERN_PIPE_LIMITKVA ) | | 804 | .It Li kern.pipe.limitkva ( KERN_PIPE_LIMITKVA ) |
791 | Limit for direct transfers via page loan. | | 805 | Limit for direct transfers via page loan. |
792 | .It Li kern.pipe.nbigpipes ( KERN_PIPE_NBIGPIPES ) | | 806 | .It Li kern.pipe.nbigpipes ( KERN_PIPE_NBIGPIPES ) |
793 | Number of "big" pipes. | | 807 | Number of "big" pipes. |
794 | .El | | 808 | .El |
795 | .\" XXX: Undocumented .It Li kern.posix ( ? ) | | 809 | .\" XXX: Undocumented .It Li kern.posix ( ? ) |
796 | .\" This is a node in which the only variable is semmax. | | 810 | .\" This is a node in which the only variable is semmax. |
797 | .It Li kern.posix1version ( KERN_POSIX1 ) | | 811 | .It Li kern.posix1version ( KERN_POSIX1 ) |
798 | The version of ISO/IEC 9945 (POSIX 1003.1) with which the system | | 812 | The version of ISO/IEC 9945 (POSIX 1003.1) with which the system |
799 | attempts to comply. | | 813 | attempts to comply. |
800 | .It Li kern.posix_aio | | 814 | .It Li kern.posix_aio |
801 | The version of | | 815 | The version of |
802 | .St -p1003.1 | | 816 | .St -p1003.1 |
803 | and its Asynchronous I/O option to which the system attempts to conform. | | 817 | and its Asynchronous I/O option to which the system attempts to conform. |
804 | .It Li kern.posix_barriers ( KERN_POSIX_BARRIERS ) | | 818 | .It Li kern.posix_barriers ( KERN_POSIX_BARRIERS ) |
805 | The version of | | 819 | The version of |
806 | .St -p1003.1 | | 820 | .St -p1003.1 |
807 | and its | | 821 | and its |
808 | Barriers | | 822 | Barriers |
809 | option to which the system attempts to conform, | | 823 | option to which the system attempts to conform, |
810 | otherwise 0. | | 824 | otherwise 0. |
811 | .It Li kern.posix_reader_writer_locks ( KERN_POSIX_READER_WRITER_LOCKS ) | | 825 | .It Li kern.posix_reader_writer_locks ( KERN_POSIX_READER_WRITER_LOCKS ) |
812 | The version of | | 826 | The version of |
813 | .St -p1003.1 | | 827 | .St -p1003.1 |
814 | and its | | 828 | and its |
815 | Read-Write Locks | | 829 | Read-Write Locks |
816 | option to which the system attempts to conform, | | 830 | option to which the system attempts to conform, |
817 | otherwise 0. | | 831 | otherwise 0. |
818 | .\".It Li kern.posix_sched | | 832 | .\".It Li kern.posix_sched |
819 | .\" XXX: Undocumented. | | 833 | .\" XXX: Undocumented. |
820 | .It Li kern.posix_semaphores ( KERN_POSIX_SEMAPHORES ) | | 834 | .It Li kern.posix_semaphores ( KERN_POSIX_SEMAPHORES ) |
821 | The version of | | 835 | The version of |
822 | .St -p1003.1 | | 836 | .St -p1003.1 |
823 | and its | | 837 | and its |
824 | Semaphores | | 838 | Semaphores |
825 | option to which the system attempts to conform, | | 839 | option to which the system attempts to conform, |
826 | otherwise 0. | | 840 | otherwise 0. |
827 | .It Li kern.posix_spin_locks ( KERN_POSIX_SPIN_LOCKS ) | | 841 | .It Li kern.posix_spin_locks ( KERN_POSIX_SPIN_LOCKS ) |
828 | The version of | | 842 | The version of |
829 | .St -p1003.1 | | 843 | .St -p1003.1 |
830 | and its | | 844 | and its |
831 | Spin Locks | | 845 | Spin Locks |
832 | option to which the system attempts to conform, | | 846 | option to which the system attempts to conform, |
833 | otherwise 0. | | 847 | otherwise 0. |
834 | .It Li kern.posix_threads ( KERN_POSIX_THREADS ) | | 848 | .It Li kern.posix_threads ( KERN_POSIX_THREADS ) |
835 | The version of | | 849 | The version of |
836 | .St -p1003.1 | | 850 | .St -p1003.1 |
837 | and its | | 851 | and its |
838 | Threads | | 852 | Threads |
839 | option to which the system attempts to conform, | | 853 | option to which the system attempts to conform, |
840 | otherwise 0. | | 854 | otherwise 0. |
841 | .It Li kern.posix_timers ( KERN_POSIX_TIMERS ) | | 855 | .It Li kern.posix_timers ( KERN_POSIX_TIMERS ) |
842 | The version of | | 856 | The version of |
843 | .St -p1003.1 | | 857 | .St -p1003.1 |
844 | and its | | 858 | and its |
845 | Timers | | 859 | Timers |
846 | option to which the system attempts to conform, | | 860 | option to which the system attempts to conform, |
847 | otherwise 0. | | 861 | otherwise 0. |
848 | .It Li kern.proc ( KERN_PROC ) | | 862 | .It Li kern.proc ( KERN_PROC ) |
849 | Return the entire process table, or a subset of it. | | 863 | Return the entire process table, or a subset of it. |
850 | An array of | | 864 | An array of |
851 | .Va struct kinfo_proc | | 865 | .Va struct kinfo_proc |
852 | structures is returned, | | 866 | structures is returned, |
853 | whose size depends on the current number of such objects in the system. | | 867 | whose size depends on the current number of such objects in the system. |
854 | The third and fourth level numeric names are as follows: | | 868 | The third and fourth level numeric names are as follows: |
855 | .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent | | 869 | .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent |
856 | .It Sy Third level name Fourth level is: | | 870 | .It Sy Third level name Fourth level is: |
857 | .It KERN_PROC_ALL None | | 871 | .It KERN_PROC_ALL None |
858 | .It KERN_PROC_GID A group ID | | 872 | .It KERN_PROC_GID A group ID |
859 | .It KERN_PROC_PID A process ID | | 873 | .It KERN_PROC_PID A process ID |
860 | .It KERN_PROC_PGRP A process group | | 874 | .It KERN_PROC_PGRP A process group |
861 | .It KERN_PROC_RGID A real group ID | | 875 | .It KERN_PROC_RGID A real group ID |
862 | .It KERN_PROC_RUID A real user ID | | 876 | .It KERN_PROC_RUID A real user ID |
863 | .It KERN_PROC_SESSION A session ID | | 877 | .It KERN_PROC_SESSION A session ID |
864 | .It KERN_PROC_TTY A tty device | | 878 | .It KERN_PROC_TTY A tty device |
865 | .It KERN_PROC_UID A user ID | | 879 | .It KERN_PROC_UID A user ID |
866 | .El | | 880 | .El |
867 | .It Li kern.proc2 ( KERN_PROC2 ) | | 881 | .It Li kern.proc2 ( KERN_PROC2 ) |
868 | As for KERN_PROC, but an array of | | 882 | As for KERN_PROC, but an array of |
869 | .Va struct kinfo_proc2 | | 883 | .Va struct kinfo_proc2 |
870 | structures are returned. | | 884 | structures are returned. |
871 | The fifth level name is the size of the | | 885 | The fifth level name is the size of the |
872 | .Va struct kinfo_proc2 | | 886 | .Va struct kinfo_proc2 |
873 | and the sixth level name is the number of structures to return. | | 887 | and the sixth level name is the number of structures to return. |
874 | .It Li kern.proc_args ( KERN_PROC_ARGS ) | | 888 | .It Li kern.proc_args ( KERN_PROC_ARGS ) |
875 | Return the argv or environment strings (or the number thereof) | | 889 | Return the argv or environment strings (or the number thereof) |
876 | of a process. | | 890 | of a process. |
877 | Multiple strings are returned separated by NUL characters. | | 891 | Multiple strings are returned separated by NUL characters. |
878 | The third level name is the process ID. | | 892 | The third level name is the process ID. |
879 | The fourth level name is as follows: | | 893 | The fourth level name is as follows: |
880 | .Bl -column "KERN_PROG_NARGV" "The number of environ strings" -offset indent | | 894 | .Bl -column "KERN_PROG_NARGV" "The number of environ strings" -offset indent |
881 | .It KERN_PROC_ARGV The argv strings | | 895 | .It KERN_PROC_ARGV The argv strings |
882 | .It KERN_PROC_ENV The environ strings | | 896 | .It KERN_PROC_ENV The environ strings |
883 | .It KERN_PROC_NARGV The number of argv strings | | 897 | .It KERN_PROC_NARGV The number of argv strings |
884 | .It KERN_PROC_NENV The number of environ strings | | 898 | .It KERN_PROC_NENV The number of environ strings |
885 | .El | | 899 | .El |
886 | .It Li kern.profiling ( KERN_PROF ) | | 900 | .It Li kern.profiling ( KERN_PROF ) |
887 | Return profiling information about the kernel. | | 901 | Return profiling information about the kernel. |
888 | If the kernel is not compiled for profiling, | | 902 | If the kernel is not compiled for profiling, |
889 | attempts to retrieve any of the KERN_PROF values will | | 903 | attempts to retrieve any of the KERN_PROF values will |
890 | fail with | | 904 | fail with |
891 | .Er EOPNOTSUPP . | | 905 | .Er EOPNOTSUPP . |
892 | The third level names for the string and integer profiling information | | 906 | The third level names for the string and integer profiling information |
893 | is detailed below. | | 907 | is detailed below. |
894 | The changeable column shows whether a process with appropriate | | 908 | The changeable column shows whether a process with appropriate |
895 | privilege may change the value. | | 909 | privilege may change the value. |
896 | .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent | | 910 | .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent |
897 | .It Sy Third level name Type Changeable | | 911 | .It Sy Third level name Type Changeable |
898 | .It kern.profiling.count u_short[\|] yes | | 912 | .It kern.profiling.count u_short[\|] yes |
899 | .It kern.profiling.froms u_short[\|] yes | | 913 | .It kern.profiling.froms u_short[\|] yes |
900 | .It kern.profiling.gmonparam struct gmonparam no | | 914 | .It kern.profiling.gmonparam struct gmonparam no |
901 | .It kern.profiling.state integer yes | | 915 | .It kern.profiling.state integer yes |
902 | .It kern.profiling.tos struct tostruct yes | | 916 | .It kern.profiling.tos struct tostruct yes |
903 | .El | | 917 | .El |
904 | .Pp | | 918 | .Pp |
905 | The variables are as follows: | | 919 | The variables are as follows: |
906 | .Bl -tag -width "123456" | | 920 | .Bl -tag -width "123456" |
907 | .It Li kern.profiling.count ( GPROF_COUNT ) | | 921 | .It Li kern.profiling.count ( GPROF_COUNT ) |
908 | Array of statistical program counter counts. | | 922 | Array of statistical program counter counts. |
909 | .It Li kern.profiling.froms ( GPROF_FROMS ) | | 923 | .It Li kern.profiling.froms ( GPROF_FROMS ) |
910 | Array indexed by program counter of call-from points. | | 924 | Array indexed by program counter of call-from points. |
911 | .It Li kern.profiling.gmonparams ( GPROF_GMONPARAM ) | | 925 | .It Li kern.profiling.gmonparams ( GPROF_GMONPARAM ) |
912 | Structure giving the sizes of the above arrays. | | 926 | Structure giving the sizes of the above arrays. |
913 | .It Li kern.profiling.state ( GPROF_STATE ) | | 927 | .It Li kern.profiling.state ( GPROF_STATE ) |
914 | Profiling state. | | 928 | Profiling state. |
915 | If set to GMON_PROF_ON, starts profiling. | | 929 | If set to GMON_PROF_ON, starts profiling. |
916 | If set to GMON_PROF_OFF, stops profiling. | | 930 | If set to GMON_PROF_OFF, stops profiling. |
917 | .It Li kern.profiling.tos ( GPROF_TOS ) | | 931 | .It Li kern.profiling.tos ( GPROF_TOS ) |
918 | Array of | | 932 | Array of |
919 | .Va struct tostruct | | 933 | .Va struct tostruct |
920 | describing destination of calls and their counts. | | 934 | describing destination of calls and their counts. |
921 | .El | | 935 | .El |
922 | .\" .It Li kern.pset | | 936 | .\" .It Li kern.pset |
923 | .\" XXX: Undocumented. | | 937 | .\" XXX: Undocumented. |
924 | .It Li kern.rawpartition ( KERN_RAWPARTITION ) | | 938 | .It Li kern.rawpartition ( KERN_RAWPARTITION ) |
925 | The raw partition of a disk (a == 0). | | 939 | The raw partition of a disk (a == 0). |
926 | .It Li kern.root_device ( KERN_ROOT_DEVICE ) | | 940 | .It Li kern.root_device ( KERN_ROOT_DEVICE ) |
927 | The name of the root device (e.g., | | 941 | The name of the root device (e.g., |
928 | .Dq wd0 ) . | | 942 | .Dq wd0 ) . |
929 | .It Li kern.root_partition ( KERN_ROOT_PARTITION ) | | 943 | .It Li kern.root_partition ( KERN_ROOT_PARTITION ) |
930 | The root partition on the root device (a == 0). | | 944 | The root partition on the root device (a == 0). |
931 | .It Li kern.rtc_offset ( KERN_RTC_OFFSET ) | | 945 | .It Li kern.rtc_offset ( KERN_RTC_OFFSET ) |
932 | Return the offset of real time clock from UTC in minutes. | | 946 | Return the offset of real time clock from UTC in minutes. |
933 | .It Li kern.saved_ids ( KERN_SAVED_IDS ) | | 947 | .It Li kern.saved_ids ( KERN_SAVED_IDS ) |
934 | Returns 1 if saved set-group and saved set-user ID is available. | | 948 | Returns 1 if saved set-group and saved set-user ID is available. |
935 | .It Li kern.sbmax ( KERN_SBMAX ) | | 949 | .It Li kern.sbmax ( KERN_SBMAX ) |
936 | Maximum socket buffer size. | | 950 | Maximum socket buffer size. |
937 | .\" XXX units? | | 951 | .\" XXX units? |
938 | .It Li kern.securelevel ( KERN_SECURELVL ) | | 952 | .It Li kern.securelevel ( KERN_SECURELVL ) |
939 | See | | 953 | See |
940 | .Xr secmodel_securelevel 9 . | | 954 | .Xr secmodel_securelevel 9 . |
941 | .\" .It Li kern.sched | | 955 | .\" .It Li kern.sched |
942 | .\" XXX: Undocumented. | | 956 | .\" XXX: Undocumented. |
943 | .It Li kern.somaxkva ( KERN_SOMAXKVA ) | | 957 | .It Li kern.somaxkva ( KERN_SOMAXKVA ) |
944 | Maximum amount of kernel memory to be used for socket buffers. | | 958 | Maximum amount of kernel memory to be used for socket buffers. |
945 | .\" XXX units? | | 959 | .\" XXX units? |
946 | .It Li kern.synchronized_io ( KERN_SYNCHRONIZED_IO ) | | 960 | .It Li kern.synchronized_io ( KERN_SYNCHRONIZED_IO ) |
947 | Returns 1 if the POSIX 1003.1b Synchronized I/O Option is available | | 961 | Returns 1 if the POSIX 1003.1b Synchronized I/O Option is available |
948 | on this system, | | 962 | on this system, |
949 | otherwise 0. | | 963 | otherwise 0. |
950 | .It Li kern.timecounter ( dynamic ) | | 964 | .It Li kern.timecounter ( dynamic ) |
951 | Display and control the timecounter source of the system. | | 965 | Display and control the timecounter source of the system. |
952 | .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent | | 966 | .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent |
953 | .It Sy Third level name Type Changeable | | 967 | .It Sy Third level name Type Changeable |
954 | .It kern.timecounter.choice string no | | 968 | .It kern.timecounter.choice string no |
955 | .It kern.timecounter.hardware string yes | | 969 | .It kern.timecounter.hardware string yes |
956 | .It kern.timecounter.timestepwarnings integer yes | | 970 | .It kern.timecounter.timestepwarnings integer yes |
957 | .El | | 971 | .El |
958 | .Pp | | 972 | .Pp |
959 | The variables are as follows: | | 973 | The variables are as follows: |
960 | .Bl -tag -width "123456" | | 974 | .Bl -tag -width "123456" |
961 | .It Li kern.timecounter.choice ( dynamic ) | | 975 | .It Li kern.timecounter.choice ( dynamic ) |
962 | The list of available timecounters with their quality and frequency. | | 976 | The list of available timecounters with their quality and frequency. |
963 | .It Li kern.timecounter.hardware ( dynamic ) | | 977 | .It Li kern.timecounter.hardware ( dynamic ) |
964 | The currently selected timecounter source. | | 978 | The currently selected timecounter source. |
965 | .It Li kern.timecounter.timestepwarnings ( dynamic ) | | 979 | .It Li kern.timecounter.timestepwarnings ( dynamic ) |
966 | If non-zero display a message each time the time is stepped. | | 980 | If non-zero display a message each time the time is stepped. |
967 | .El | | 981 | .El |
968 | .It Li kern.timex ( KERN_TIMEX ) | | 982 | .It Li kern.timex ( KERN_TIMEX ) |
969 | Not available. | | 983 | Not available. |
970 | .It Li kern.tkstat ( KERN_TKSTAT ) | | 984 | .It Li kern.tkstat ( KERN_TKSTAT ) |
971 | Return information about the number of characters sent and received | | 985 | Return information about the number of characters sent and received |
972 | on ttys. | | 986 | on ttys. |
973 | The third level names for the tty statistic variables are detailed below. | | 987 | The third level names for the tty statistic variables are detailed below. |
974 | The changeable column shows whether a process | | 988 | The changeable column shows whether a process |
975 | with appropriate privilege may change the value. | | 989 | with appropriate privilege may change the value. |
976 | .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent | | 990 | .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent |
977 | .It Sy Third level name Type Changeable | | 991 | .It Sy Third level name Type Changeable |
978 | .It kern.tkstat.cancc quad no | | 992 | .It kern.tkstat.cancc quad no |
979 | .It kern.tkstat.nin quad no | | 993 | .It kern.tkstat.nin quad no |
980 | .It kern.tkstat.nout quad no | | 994 | .It kern.tkstat.nout quad no |
981 | .It kern.tkstat.rawcc quad no | | 995 | .It kern.tkstat.rawcc quad no |
982 | .El | | 996 | .El |
983 | .Pp | | 997 | .Pp |
984 | The variables are as follows: | | 998 | The variables are as follows: |
985 | .Bl -tag -width "123456" | | 999 | .Bl -tag -width "123456" |
986 | .It Li kern.tkstat.cancc ( KERN_TKSTAT_CANCC ) | | 1000 | .It Li kern.tkstat.cancc ( KERN_TKSTAT_CANCC ) |
987 | The number of canonical input characters. | | 1001 | The number of canonical input characters. |
988 | .It Li kern.tkstat.nin ( KERN_TKSTAT_NIN ) | | 1002 | .It Li kern.tkstat.nin ( KERN_TKSTAT_NIN ) |
989 | The total number of input characters. | | 1003 | The total number of input characters. |
990 | .It Li kern.tkstat.nout ( KERN_TKSTAT_NOUT ) | | 1004 | .It Li kern.tkstat.nout ( KERN_TKSTAT_NOUT ) |
991 | The total number of output characters. | | 1005 | The total number of output characters. |
992 | .It Li kern.tkstat.rawcc ( KERN_TKSTAT_RAWCC ) | | 1006 | .It Li kern.tkstat.rawcc ( KERN_TKSTAT_RAWCC ) |
993 | The number of raw input characters. | | 1007 | The number of raw input characters. |
994 | .El | | 1008 | .El |
995 | .It Li kern.urandom ( KERN_URND ) | | 1009 | .It Li kern.urandom ( KERN_URND ) |
996 | Random integer value. | | 1010 | Random integer value. |
997 | .It Li kern.usercrypto | | 1011 | .It Li kern.usercrypto |
998 | When enabled, allows userland to | | 1012 | When enabled, allows userland to |
999 | .Xr open 2 | | 1013 | .Xr open 2 |
1000 | the | | 1014 | the |
1001 | .Pa /dev/crypto | | 1015 | .Pa /dev/crypto |
1002 | special device, used by the | | 1016 | special device, used by the |
1003 | .Xr crypto 4 | | 1017 | .Xr crypto 4 |
1004 | system. | | 1018 | system. |
1005 | .It Li kern.userasymcrypto | | 1019 | .It Li kern.userasymcrypto |
1006 | Enables or disables the use of software asymmetric crypto support in the | | 1020 | Enables or disables the use of software asymmetric crypto support in the |
1007 | .Xr crypto 4 | | 1021 | .Xr crypto 4 |
1008 | system. | | 1022 | system. |
1009 | .It Li kern.veriexec | | 1023 | .It Li kern.veriexec |
1010 | Runtime information for | | 1024 | Runtime information for |
1011 | .Xr veriexec 8 . | | 1025 | .Xr veriexec 8 . |
1012 | .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent | | 1026 | .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent |
1013 | .It Sy Third level name Type Changeable | | 1027 | .It Sy Third level name Type Changeable |
1014 | .It kern.veriexec.algorithms string no | | 1028 | .It kern.veriexec.algorithms string no |
1015 | .It kern.veriexec.count node not applicable | | 1029 | .It kern.veriexec.count node not applicable |
1016 | .It kern.veriexec.strict integer yes | | 1030 | .It kern.veriexec.strict integer yes |
1017 | .It kern.veriexec.verbose integer yes | | 1031 | .It kern.veriexec.verbose integer yes |
1018 | .El | | 1032 | .El |
1019 | .Bl -tag -width "123456" | | 1033 | .Bl -tag -width "123456" |
1020 | .It Li kern.veriexec.algorithms | | 1034 | .It Li kern.veriexec.algorithms |
1021 | Returns a string with the supported algorithms in Veriexec. | | 1035 | Returns a string with the supported algorithms in Veriexec. |
1022 | .It Li kern.veriexec.count | | 1036 | .It Li kern.veriexec.count |
1023 | Sub-nodes are added to this node as new mounts are monitored by Veriexec. | | 1037 | Sub-nodes are added to this node as new mounts are monitored by Veriexec. |
1024 | Each mount will be under its own | | 1038 | Each mount will be under its own |
1025 | .No tableN | | 1039 | .No tableN |
1026 | node. | | 1040 | node. |
1027 | Under each node there will be three variables, indicating the mount | | 1041 | Under each node there will be three variables, indicating the mount |
1028 | point, the file-system type, and the number of entries. | | 1042 | point, the file-system type, and the number of entries. |
1029 | .It Li kern.veriexec.strict | | 1043 | .It Li kern.veriexec.strict |
1030 | Controls the strict level of Veriexec. | | 1044 | Controls the strict level of Veriexec. |
1031 | See | | 1045 | See |
1032 | .Xr security 8 | | 1046 | .Xr security 8 |
1033 | for more information on each level's implications. | | 1047 | for more information on each level's implications. |
1034 | .It Li kern.veriexec.verbose | | 1048 | .It Li kern.veriexec.verbose |
1035 | Controls the verbosity level of Veriexec. | | 1049 | Controls the verbosity level of Veriexec. |
1036 | If 0, only the minimal | | 1050 | If 0, only the minimal |
1037 | indication required will be given about what's happening - fingerprint | | 1051 | indication required will be given about what's happening - fingerprint |
1038 | mismatches, removal of entries from the tables, modification of a | | 1052 | mismatches, removal of entries from the tables, modification of a |
1039 | fingerprinted file. | | 1053 | fingerprinted file. |
1040 | If 1, more messages will be printed (ie., when a file with a valid | | 1054 | If 1, more messages will be printed (ie., when a file with a valid |
1041 | fingerprint is accessed). | | 1055 | fingerprint is accessed). |
1042 | Verbose level 2 is debug mode. | | 1056 | Verbose level 2 is debug mode. |
1043 | .El | | 1057 | .El |
1044 | .It Li kern.version ( KERN_VERSION ) | | 1058 | .It Li kern.version ( KERN_VERSION ) |
1045 | The system version string. | | 1059 | The system version string. |
1046 | .It Li kern.vnode ( KERN_VNODE ) | | 1060 | .It Li kern.vnode ( KERN_VNODE ) |
1047 | Return the entire vnode table. | | 1061 | Return the entire vnode table. |
1048 | Note, the vnode table is not necessarily a consistent snapshot of | | 1062 | Note, the vnode table is not necessarily a consistent snapshot of |
1049 | the system. | | 1063 | the system. |
1050 | The returned data consists of an array whose size depends on the | | 1064 | The returned data consists of an array whose size depends on the |
1051 | current number of such objects in the system. | | 1065 | current number of such objects in the system. |
1052 | Each element of the array contains the kernel address of a vnode | | 1066 | Each element of the array contains the kernel address of a vnode |
1053 | .Va struct vnode * | | 1067 | .Va struct vnode * |
1054 | followed by the vnode itself | | 1068 | followed by the vnode itself |
1055 | .Va struct vnode . | | 1069 | .Va struct vnode . |
1056 | .\" XXX: Undocumented: kern.lwp: no children? | | 1070 | .\" XXX: Undocumented: kern.lwp: no children? |
1057 | .El | | 1071 | .El |
1058 | .Ss The machdep.* subtree | | 1072 | .Ss The machdep.* subtree |
1059 | The set of variables defined is architecture dependent. | | 1073 | The set of variables defined is architecture dependent. |
1060 | Most architectures define at least the following variables. | | 1074 | Most architectures define at least the following variables. |
1061 | .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent | | 1075 | .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent |
1062 | .It Sy Second level name Type Changeable | | 1076 | .It Sy Second level name Type Changeable |
1063 | .It Li machdep.booted_kernel string no | | 1077 | .It Li machdep.booted_kernel string no |
1064 | .El | | 1078 | .El |
1065 | .\" XXX: Document the above. | | 1079 | .\" XXX: Document the above. |
1066 | .Ss The net.* subtree | | 1080 | .Ss The net.* subtree |
1067 | The string and integer information available for the | | 1081 | The string and integer information available for the |
1068 | .Li net | | 1082 | .Li net |
1069 | level is detailed below. | | 1083 | level is detailed below. |
1070 | The changeable column shows whether a process with appropriate | | 1084 | The changeable column shows whether a process with appropriate |
1071 | privilege may change the value. | | 1085 | privilege may change the value. |
1072 | The second and third levels are typically the protocol family and | | 1086 | The second and third levels are typically the protocol family and |
1073 | protocol number, though this is not always the case. | | 1087 | protocol number, though this is not always the case. |
1074 | .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent | | 1088 | .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent |
1075 | .It Sy Second level name Type Changeable | | 1089 | .It Sy Second level name Type Changeable |
1076 | .It net.route routing messages no | | 1090 | .It net.route routing messages no |
1077 | .It net.inet IPv4 values yes | | 1091 | .It net.inet IPv4 values yes |
1078 | .It net.inet6 IPv6 values yes | | 1092 | .It net.inet6 IPv6 values yes |
1079 | .It net.key IPsec key management values yes | | 1093 | .It net.key IPsec key management values yes |
1080 | .El | | 1094 | .El |
1081 | .Pp | | 1095 | .Pp |
1082 | .Bl -tag -width "123456" | | 1096 | .Bl -tag -width "123456" |
1083 | .It Li net.route ( PF_ROUTE ) | | 1097 | .It Li net.route ( PF_ROUTE ) |
1084 | .\" XXX really? | | 1098 | .\" XXX really? |
1085 | Return the entire routing table or a subset of it. | | 1099 | Return the entire routing table or a subset of it. |
1086 | The data is returned as a sequence of routing messages (see | | 1100 | The data is returned as a sequence of routing messages (see |
1087 | .Xr route 4 | | 1101 | .Xr route 4 |
1088 | for the header file, format and meaning). | | 1102 | for the header file, format and meaning). |
1089 | The length of each message is contained in the message header. | | 1103 | The length of each message is contained in the message header. |
1090 | .Pp | | 1104 | .Pp |
1091 | The third level name is a protocol number, which is currently always 0. | | 1105 | The third level name is a protocol number, which is currently always 0. |
1092 | The fourth level name is an address family, which may be set to 0 to | | 1106 | The fourth level name is an address family, which may be set to 0 to |
1093 | select all address families. | | 1107 | select all address families. |
1094 | The fifth and sixth level names are as follows: | | 1108 | The fifth and sixth level names are as follows: |
1095 | .Bl -column "Fifth level name" "Sixth level is:" -offset indent | | 1109 | .Bl -column "Fifth level name" "Sixth level is:" -offset indent |
1096 | .It Sy Fifth level name Sixth level is: | | 1110 | .It Sy Fifth level name Sixth level is: |
1097 | .It NET_RT_FLAGS rtflags | | 1111 | .It NET_RT_FLAGS rtflags |
1098 | .It NET_RT_DUMP None | | 1112 | .It NET_RT_DUMP None |
1099 | .It NET_RT_IFLIST None | | 1113 | .It NET_RT_IFLIST None |
1100 | .El | | 1114 | .El |
1101 | .It Li net.inet ( PF_INET ) | | 1115 | .It Li net.inet ( PF_INET ) |
1102 | Get or set various global information about the IPv4 | | 1116 | Get or set various global information about the IPv4 |
1103 | .Pq Internet Protocol version 4 . | | 1117 | .Pq Internet Protocol version 4 . |
1104 | The third level name is the protocol. | | 1118 | The third level name is the protocol. |
1105 | The fourth level name is the variable name. | | 1119 | The fourth level name is the variable name. |
1106 | The currently defined protocols and names are: | | 1120 | The currently defined protocols and names are: |
1107 | .Bl -column "Protocol name" "sack.globalmaxholes" "integer" "Changeable" -offset 4n | | 1121 | .Bl -column "Protocol name" "sack.globalmaxholes" "integer" "Changeable" -offset 4n |
1108 | .It Sy Protocol name Variable name Type Changeable | | 1122 | .It Sy Protocol name Variable name Type Changeable |
1109 | .It arp down integer yes | | 1123 | .It arp down integer yes |
1110 | .It arp keep integer yes | | 1124 | .It arp keep integer yes |
1111 | .It arp prune integer yes | | 1125 | .It arp prune integer yes |
1112 | .It arp refresh integer yes | | 1126 | .It arp refresh integer yes |
1113 | .It carp allow integer yes | | 1127 | .It carp allow integer yes |
1114 | .It carp preempt integer yes | | 1128 | .It carp preempt integer yes |
1115 | .It carp log integer yes | | 1129 | .It carp log integer yes |
1116 | .It carp arpbalance integer yes | | 1130 | .It carp arpbalance integer yes |
1117 | .It icmp errppslimit integer yes | | 1131 | .It icmp errppslimit integer yes |
1118 | .It icmp maskrepl integer yes | | 1132 | .It icmp maskrepl integer yes |
1119 | .It icmp rediraccept integer yes | | 1133 | .It icmp rediraccept integer yes |
1120 | .It icmp redirtimeout integer yes | | 1134 | .It icmp redirtimeout integer yes |
1121 | .It icmp bmcastecho integer yes | | 1135 | .It icmp bmcastecho integer yes |
1122 | .It ip allowsrcrt integer yes | | 1136 | .It ip allowsrcrt integer yes |
1123 | .It ip anonportmax integer yes | | 1137 | .It ip anonportmax integer yes |
1124 | .It ip anonportmin integer yes | | 1138 | .It ip anonportmin integer yes |
1125 | .It ip checkinterface integer yes | | 1139 | .It ip checkinterface integer yes |
1126 | .It ip directed-broadcast integer yes | | 1140 | .It ip directed-broadcast integer yes |
1127 | .It ip do_loopback_cksum integer yes | | 1141 | .It ip do_loopback_cksum integer yes |
1128 | .It ip forwarding integer yes | | 1142 | .It ip forwarding integer yes |
1129 | .It ip forwsrcrt integer yes | | 1143 | .It ip forwsrcrt integer yes |
1130 | .It ip gifttl integer yes | | 1144 | .It ip gifttl integer yes |
1131 | .It ip grettl integer yes | | 1145 | .It ip grettl integer yes |
1132 | .It ip hashsize integer yes | | 1146 | .It ip hashsize integer yes |
1133 | .It ip hostzerobroadcast integer yes | | 1147 | .It ip hostzerobroadcast integer yes |
1134 | .It ip lowportmin integer yes | | 1148 | .It ip lowportmin integer yes |
1135 | .It ip lowportmax integer yes | | 1149 | .It ip lowportmax integer yes |
1136 | .It ip maxflows integer yes | | 1150 | .It ip maxflows integer yes |
1137 | .It ip maxfragpackets integer yes | | 1151 | .It ip maxfragpackets integer yes |
1138 | .It ip mtudisc integer yes | | 1152 | .It ip mtudisc integer yes |
1139 | .It ip mtudisctimeout integer yes | | 1153 | .It ip mtudisctimeout integer yes |
1140 | .It ip random_id integer yes | | 1154 | .It ip random_id integer yes |
1141 | .It ip redirect integer yes | | 1155 | .It ip redirect integer yes |
1142 | .It ip subnetsarelocal integer yes | | 1156 | .It ip subnetsarelocal integer yes |