1.\" $NetBSD: options.4,v 1.526 2023/08/14 16:51:52 riastradh Exp $ 2.\" 3.\" Copyright (c) 1996 4.\" Perry E. Metzger. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgment: 16.\" This product includes software developed for the NetBSD Project 17.\" by Perry E. Metzger. 18.\" 4. The name of the author may not be used to endorse or promote products 19.\" derived from this software without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" 32.\" 33.Dd May 7, 2022 34.Dt OPTIONS 4 35.Os 36.Sh NAME 37.Nm options 38.Nd Miscellaneous kernel configuration options 39.Sh SYNOPSIS 40.Cd cinclude ... 41.Cd config ... 42.Cd [no] file-system ... 43.Cd ident ... 44.Cd include ... 45.Cd [no] makeoptions ... 46.Cd maxusers ... 47.Cd [no] options ... 48.Cd [no] pseudo-device ... 49.Sh DESCRIPTION 50This manual page describes a number of miscellaneous kernel 51configuration options that may be specified in a kernel config 52file. 53See 54.Xr config 1 55and 56.Xr config 5 57for information on how to configure and build kernels. 58.Pp 59The 60.Ar no 61form removes a previously specified option. 62.Ss Keywords 63The following keywords are recognized in a kernel configuration file: 64.Bl -ohang 65.It Sy cinclude Qq Ar filename 66Conditionally includes another kernel configuration file whose name is 67.Ar filename , 68which may be double-quoted and may be an explicit path or relative to 69the kernel source directory. 70Failure to open the named file is ignored. 71.It Sy config Ar exec_name No root on Ar rootdev Oo type Ar fstype Oc \ 72Oo dumps on Ar dumpdev Oc 73Defines a configuration whose kernel executable is named 74.Ar exec_name , 75normally 76.Dq netbsd , 77with its root file system of type 78.Ar fstype 79on the device 80.Ar rootdev , 81and optionally specifying the location of kernel core dumps on the device 82.Ar dumpdev . 83.Ar dev 84or 85.Ar dumpdev 86and 87.Ar fstype 88may be specified as 89.Dq \&? , 90which is a wild card. 91The root 92.Ar fstype 93and 94.Ar dumpdev 95are optional and assumed to be wild carded if they are not specified. 96.It Ar device_instance No at Ar attachment \ 97Oo Ar locators value Oo ... Oc Oc Oo flags Ar value Oc 98Define an instance of the device driver 99.Ar device_instance 100that attaches to the bus or device named 101.Ar attachment . 102An 103.Ar attachment 104may require additional information on where the device can be found, such 105as an address, channel, function, offset, and/or slot, referred to as 106.Ar locators , 107whose 108.Ar value 109often may be a wild card, 110.Dq \&? . 111Some device drivers have one or more 112.Ar flags 113that can be adjusted to affect the way they operate. 114.It Sy file-system Ar fs_name Op , Ar fs_name Op ... 115Include support for the file-system 116.Ar fs_name . 117.It Sy ident Qq Ar string 118Sets the kernel identification string to 119.Ar string . 120.It Sy include Qq Ar filename 121Functions the same as 122.Ar cinclude , 123except failure to open 124.Ar filename 125produces a fatal error. 126.It Sy makeoptions Ar name=value 127Defines a 128.Xr make 1 129macro 130.Ar name 131with the value 132.Ar value 133in the kernel Makefile. 134.It Sy maxusers Ar integer 135Set the maxusers variable in the kernel. 136.It Sy no Ar keyword Ar name Op Ar arguments Op ... 137For the 138.Xr config 1 139.Ar keywords 140file-system, makeoptions, options, and pseudo-device, 141.Ar no 142removes the file-system, makeoption, options, or pseudo-device, 143.Ar name . 144This is useful when a kernel configuration file includes another which 145has undesired options. 146.Pp 147For example, a local configuration file that wanted the kitchen sink, but 148not COMPAT_09 or bridging, might be: 149.Bd -literal -offset indent 150include "arch/i386/conf/GENERIC" 151no options COMPAT_09 152no pseudo-device bridge 153.Ed 154.It Sy options Ar option_name Op , Ar option_name=value Op ... 155Specifies (or sets) the option, or comma-separated list of options, 156.Ar option_name . 157Some options expect to be assigned a value, which may be an integer, 158a double-quoted word, a bare word, or an empty string 159.Pq Qq . 160Note that those are eventually handled by the C compiler, so the rules 161of that language apply. 162.Pp 163.Em Note : 164Options that are not defined by device definition files are passed to 165the compile process as 166.Fl D 167flags to the C compiler. 168.It Sy pseudo-device Ar name Op Ar N 169Includes support for the pseudo-device 170.Ar name . 171Some pseudo-devices can have multiple or 172.Ar N 173instances. 174.El 175.Ss Compatibility Options 176Note that compatibility options for older 177.Nx 178releases includes support for newer releases as well. 179This means that typically only one of these is necessary, with the 180.Cd COMPAT_09 181option enabling all 182.Nx 183compatibility. 184This does not include the 185.Cd COMPAT_43 186or 187.Cd COMPAT_44 188options. 189.Bl -ohang 190.It Cd options COMPAT_09 191Enable binary compatibility with 192.Nx 0.9 . 193This enables support for 19416-bit user, group, and process IDs (following revisions support 19532-bit identifiers). 196It also allows the use of the deprecated 197.Xr getdomainname 3 , 198.Xr setdomainname 3 , 199and 200.Xr uname 3 201syscalls. 202This option also allows using numeric file system identifiers rather 203than strings. 204Post 205.Nx 0.9 206versions use string identifiers. 207.It Cd options COMPAT_10 208Enable binary compatibility with 209.Nx 1.0 . 210This option allows the use of the file system name of 211.Dq ufs 212as an alias for 213.Dq ffs . 214The name 215.Dq ffs 216should be used post 1.0 in 217.Pa /etc/fstab 218and other files. 219It also adds old syscalls for the 220.At V 221shared memory interface. 222This was changed post 1.0 to work on 64-bit architectures. 223This option also enables 224.Dq sgtty 225compatibility, without which programs using the old interface produce 226an 227.Dq inappropriate ioctl 228error, and 229.Pa /dev/io 230only works when this option is set in the kernel, 231see 232.Xr io 4 233on ports that support it. 234.It Cd options COMPAT_11 235Enable binary compatibility with 236.Nx 1.1 . 237This allows binaries running on the i386 port to gain direct access to 238the io ports by opening 239.Pa /dev/io 240read/write. 241This functionality was replaced by 242.Xr i386_iopl 2 243post 1.1. 244On the Atari port, the location of the disk label was moved after 1.1. 245When the 246.Em COMPAT_11 247option is set, the kernel will read (pre) 1.1 style disk labels as a 248last resort. 249When a disk label is re-written, the old style label will be replaced 250with a post 1.1 style label. 251This also enables the 252.Em EXEC_ELF_NOTELESS 253option. 254.It Cd options COMPAT_12 255Enable binary compatibility with 256.Nx 1.2 . 257This allows the use of old syscalls for 258.Fn reboot 259and 260.Fn swapon . 261The syscall numbers were changed post 1.2 to add functionality to the 262.Xr reboot 2 263syscall, and the new 264.Xr swapctl 2 265interface was introduced. 266This also enables the 267.Em EXEC_ELF_NOTELESS 268option. 269.It Cd options COMPAT_13 270Enable binary compatibility with 271.Nx 1.3 . 272This allows the use of old syscalls for 273.Fn sigaltstack , 274and also enables the old 275.Xr swapctl 2 276command 277.Dv SWAP_STATS 278(now called 279.Dv SWAP_OSTATS ) , 280which does not include the 281.Fa se_path 282member of 283.Va struct swapent . 284.It Cd options COMPAT_14 285Enable binary compatibility with 286.Nx 1.4 . 287This allows some old 288.Xr ioctl 2 289on 290.Xr wscons 4 291to be performed, and allows the 292.Dv NFSSVC_BIOD 293mode of the 294.Xr nfssvc 2 295system call to be used for compatibility with the deprecated nfsiod program. 296.It Cd options COMPAT_15 297Enable binary compatibility with 298.Nx 1.5 . 299Since there were no API changes from 300.Nx 1.5 301and 302.Nx 1.6 , 303this option does nothing. 304.It Cd options COMPAT_16 305Enable binary compatibility with 306.Nx 1.6 . 307This allows the use of old signal trampoline code which has been deprecated 308with the addition of 309.Xr siginfo 2 . 310.It Cd options COMPAT_20 311Enable binary compatibility with 312.Nx 2.0 . 313This allows the use of old syscalls for 314.Fn statfs , 315.Fn fstatfs , 316.Fn getfsstat 317and 318.Fn fhstatfs , 319which have been deprecated with the addition of the 320.Xr statvfs 2 , 321.Xr fstatvfs 2 , 322.Xr getvfsstat 2 323and 324.Xr fhstatvfs 2 325system calls. 326.It Cd options COMPAT_30 327Enable binary compatibility with 328.Nx 3.0 . 329See 330.Xr compat_30 8 331for details about the changes made after the 332.Nx 3.0 333release. 334.It Cd options COMPAT_40 335Enable binary compatibility with 336.Nx 4.0 . 337This allows the use of old 338.Xr ptrace 2 339calls for the SH3 platform. 340It also enables the old 341.Xr mount 2 342system call that did not include the data length parameter. 343The power_event_t structure's pev_switch is filled in. 344.It Cd options COMPAT_43 345Enables compatibility with 346.Bx 4.3 . 347This adds an old syscall for 348.Xr lseek 2 . 349It also adds the ioctls for 350.Dv TIOCGETP 351and 352.Dv TIOCSETP . 353The return values for 354.Xr getpid 2 , 355.Xr getgid 2 , 356and 357.Xr getuid 2 358syscalls are modified as well, to return the parent's PID and 359UID as well as the current process's. 360It also enables the deprecated 361.Dv NTTYDISC 362terminal line discipline. 363It also provides backwards compatibility with 364.Dq old 365SIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK} interface ioctls, including 366binary compatibility with code written before the introduction of the 367sa_len field in sockaddrs. 368It also enables 369support for some older pre 370.Bx 4.4 371socket calls. 372.It Cd options COMPAT_50 373Enable binary compatibility with 374.Nx 5.0 . 375This enables support for the old 376.Ft time_t 377and 378.Ft dev_t 379types as 32 bit, and all the associated kernel interface changes. 380It also enables old 381.Xr gpio 4 382and 383.Xr rnd 4 384interfaces. 385.It Cd options COMPAT_60 386Enable binary compatibility with 387.Nx 6.0 . 388This provides old 389.Xr ccd 4 390interfaces, enables support for old 391.Xr cpuctl 8 392microcode interfaces, and support for the old 393.Ft ptmget 394structure. 395.It Cd options COMPAT_70 396Enable binary compatibility with 397.Nx 7.0 . 398This provides support for old 399.Xr route 4 400interfaces. 401.It Cd options COMPAT_80 402Enable binary compatibility with 403.Nx 8.0 . 404.It Cd options COMPAT_90 405Enable binary compatibility with 406.Nx 9.0 . 407.It Cd options COMPAT_BSDPTY 408This option is currently on by default and enables the pty multiplexer 409.Xr ptm 4 410and 411.Xr ptmx 4 412to find and use ptys named 413.Pa /dev/ptyXX 414(master) and 415.Pa /dev/ttyXX 416(slave). 417Eventually this option will become optional as ptyfs based pseudo-ttys become 418the default, see 419.Xr mount_ptyfs 8 . 420.It Cd options COMPAT_LINUX 421On those architectures that support it, this enables binary 422compatibility with Linux ELF and 423.Xr a.out 5 424applications built for the same architecture. 425This currently includes the alpha, arm, i386, m68k, mips, powerpc and 426x86_64 ports. 427.It Cd options COMPAT_LINUX32 428On those 64 bit architectures that support it, this enables binary 429compatibility with 32 bit Linux binaries. 430For now this is limited to running i386 ELF Linux binaries on amd64. 431.It Cd options COMPAT_SUNOS 432On those architectures that support it, this enables binary 433compatibility with SunOS 4.1 applications built for the same architecture. 434This currently includes the sparc, sparc64 and most or all m68k ports. 435Note that the sparc64 requires the 436.Em COMPAT_NETBSD32 437option for 64-bit kernels, in addition to this option. 438.It Cd options COMPAT_ULTRIX 439On those architectures that support it, this enables binary 440compatibility with ULTRIX applications built for the same architecture. 441This currently is limited to the pmax. 442The functionality of this option is unknown. 443.It Cd options COMPAT_FREEBSD 444On those architectures that support it, this enables binary 445compatibility with 446.Fx 447applications built for the same architecture. 448At the moment this is limited to the i386 port. 449.It Cd options COMPAT_NOMID 450Enable compatibility with 451.Xr a.out 5 452executables that lack a machine ID. 453This includes 454.Nx 0.8 Ns 's 455ZMAGIC format, and 386BSD and BSDI's 456QMAGIC, NMAGIC, and OMAGIC 457.Xr a.out 5 458formats. 459.It Cd options COMPAT_NETBSD32 460On those architectures that support it, this enables binary 461compatibility with 32-bit applications built for the same architecture. 462This is currently limited to the amd64 and sparc64 ports, and only 463applicable for 64-bit kernels. 464.It Cd options COMPAT_AOUT_M68K 465On m68k architectures which have switched to ELF, 466this enables binary compatibility with 467.Nx Ns /m68k 468.Xr a.out 5 469executables on 470.Nx Ns /m68k 471ELF kernels. 472This handles alignment incompatibility of m68k ABI between 473a.out and ELF which causes the structure padding differences. 474Currently only some system calls which use 475.Va struct stat 476are adjusted and some binaries which use 477.Xr sysctl 3 478to retrieve network details would not work properly. 479.It Cd options EMUL_NATIVEROOT=string 480Just like emulated binaries first try looking up files in 481an emulation root (e.g. 482.Pa /emul/linux ) 483before looking them up in real root, this option causes native 484binaries to first look up files in an "emulation" directory too. 485This can be useful to test an amd64 kernel on top of an i386 system 486before full migration: by unpacking the amd64 distribution in e.g. 487.Pa /emul/netbsd64 488and specifying that location as 489.Cd EMUL_NATIVEROOT , 490native amd64 binaries can be run while the root file system remains 491populated with i386 binaries. 492Beware of 493.Pa /dev 494incompatibilities between i386 and amd64 if you do this. 495.It Cd options EXEC_ELF_NOTELESS 496Run unidentified ELF binaries as 497.Nx 498binaries. 499This might be needed for very old 500.Nx 501ELF binaries on some archs. 502These old binaries didn't contain an appropriate 503.Li .note.netbsd.ident 504section, and thus can't be identified by the kernel as 505.Nx 506binaries otherwise. 507Beware - if this option is on, the kernel would run 508.Em any 509unknown ELF binaries as if they were 510.Nx 511binaries. 512.El 513.Ss Debugging Options 514.Bl -ohang 515.It Cd options DDB 516Compiles in a kernel debugger for diagnosing kernel problems. 517See 518.Xr ddb 4 519for details. 520.Em NOTE : 521not available on all architectures. 522.It Cd options DDB_FROMCONSOLE=integer 523If set to non-zero, DDB may be entered by sending a break on a serial 524console or by a special key sequence on a graphics console. 525A value of "0" ignores console breaks or key sequences. 526If not explicitly specified, the default value is "1". 527Note that this sets the value of the 528.Em ddb.fromconsole 529.Xr sysctl 3 530variable which may be changed at run time \(em see 531.Xr sysctl 8 532for details. 533.It Cd options DDB_HISTORY_SIZE=integer 534If this is non-zero, enable history editing in the kernel debugger 535and set the size of the history to this value. 536.It Cd options DDB_ONPANIC 537The default if not specified is 538.Dq 1 539- just enter into DDB. 540If set to 541.Dq 0 542the kernel will attempt to print out a stack trace 543and reboot the system. 544If set to 545.Dq -1 546then neither a stack trace is printed or DDB entered - 547it is as if DDB were not compiled into the kernel. 548Note that this sets the value of the 549.Em ddb.onpanic 550.Xr sysctl 3 551variable which may be changed at run time \(em see 552.Xr sysctl 8 553for details. 554.It Cd options DDB_COMMANDONENTER=string 555This option specify commands which will be executed on each entry to DDB. 556This sets the default value of the 557.Em ddb.commandonenter 558.Xr sysctl 3 559variable which may be changed at run time. 560.It Cd options DDB_BREAK_CHAR=integer 561This option overrides using break to enter the kernel debugger 562on the serial console. 563The value given is the ASCII value to be used instead. 564This is currently only supported by the com driver. 565.It Cd options CNMAGIC=string 566This option overrides the 567.Xr cnmagic 9 568string used to enter the kernel debugger. 569.It Cd options DDB_VERBOSE_HELP 570This option adds more verbose descriptions to the 571.Em help 572command. 573.It Cd options DDB_PANICSTACKFRAMES=integer 574Number of stack frames to display on panic. 575Useful to avoid scrolling away the interesting frames on a glass tty. 576Default value is 577.Dv 65535 578(all frames), useful value around 579.Dv 10 . 580.It Cd options KGDB 581Compiles in a remote kernel debugger stub for diagnosing kernel problems 582using the 583.Dq remote target 584feature of gdb. 585See 586.Xr gdb 1 587for details. 588.Em NOTE : 589not available on all architectures. 590.It Cd options KGDB_DEV 591Device number 592.Po 593as a 594.Dv dev_t 595.Pc 596of kgdb device. 597.It Cd options KGDB_DEVADDR 598Memory address of kgdb device. 599.It Cd options KGDB_DEVMODE 600Permissions of kgdb device. 601.It Cd options KGDB_DEVNAME 602Device name of kgdb device. 603.It Cd options KGDB_DEVRATE 604Baud rate of kgdb device. 605.It Cd makeoptions DEBUG="-g" 606The 607.Fl g 608flag causes 609.Pa netbsd.gdb 610to be built in addition to 611.Pa netbsd . 612.Pa netbsd.gdb 613is useful for debugging kernel crash dumps with gdb. 614See 615.Xr gdb 1 616for details. 617.It Cd options DEBUG 618Turns on miscellaneous kernel debugging. 619Since options are turned into preprocessor defines (see above), 620.Em options DEBUG 621is equivalent to doing a 622.Em #define DEBUG 623throughout the kernel. 624Much of the kernel has 625.Em #ifdef DEBUG 626conditionalized debugging code. 627Note that many parts of the kernel (typically device drivers) include their own 628.Em #ifdef XXX_DEBUG 629conditionals instead. 630This option also turns on certain other options, 631which may decrease system performance. 632Systems with this option are not suitable for regular use, and are 633intended only for debugging or looking for bugs. 634.It Cd options DIAGNOSTIC 635Adds code to the kernel that does internal consistency checks. 636This code will cause the kernel to panic if corruption of internal data 637structures is detected. 638Historically, the performance degradation is sufficiently small that 639it is reasonable for systems with 640.Em options DIAGNOSTIC 641to be in production use, with the real consideration not being 642performance but instead a preference for more panics versus continued 643operation with undetected problems. 644.It Cd options LOCKDEBUG 645Adds code to the kernel to detect incorrect use of locking primitives 646(mutex, rwlock). 647This code will cause the kernel to check for dead lock conditions. 648It will also check for memory being freed to not contain initialised 649lock primitives. 650Functions for use in 651.Xr ddb 4 652to check lock chains etc. are also enabled. 653These checks are very expensive and can decrease performance on 654multi-processor machines by a factor of three. 655.It Cd options KDTRACE_HOOKS 656Adds hooks for the DTrace tracing facility, which allows users to 657analyze many aspects of system and application behavior. 658See 659.Xr dtrace 1 660for details. 661.It Cd options KSTACK_CHECK_MAGIC 662Check kernel stack usage and panic if stack overflow is detected. 663This check is performance sensitive because it scans stack on each context 664switch. 665.It Cd options KTRACE 666Add hooks for the system call tracing facility, which allows users to 667watch the system call invocation behavior of processes. 668See 669.Xr ktrace 1 670for details. 671.It Cd options MSGBUFSIZE=integer 672This option sets the size of the kernel message buffer in bytes. 673This buffer holds the kernel output of 674.Fn printf 675when not (yet) read by 676.Xr syslogd 8 . 677This is particularly useful when the system has crashed and you wish to lookup 678the kernel output from just before the crash. 679Also, since the autoconfig output becomes more and more verbose, 680it sometimes happens that the message buffer overflows before 681.Xr syslogd 8 682was able to read it. 683Note that not all systems are capable of obtaining a variable sized message 684buffer. 685There are also some systems on which memory contents are not preserved 686across reboots. 687.It Cd options KERNHIST 688Enables the kernel history logs, which create in-memory traces of 689various kernel activities. 690These logs can be displayed by using 691.Cm show kernhist 692from DDB. 693See the kernel source file 694.Pa sys/kern/kern_history.c 695and the 696.Xr kernhist 9 697manual for details. 698.It Cd options KERNHIST_PRINT 699Prints the kernel history logs on the system console as entries are added. 700Note that the output is 701.Em extremely 702voluminous, so this option is really only useful for debugging 703the very earliest parts of kernel initialization. 704.It Cd options UVMHIST 705Like 706.Em KERNHIST , 707it enables the UVM history logs. 708These logs can be displayed by using 709.Cm show kernhist 710from DDB. 711See the kernel source file 712.Pa sys/uvm/uvm_stat.c 713for details. 714.It Cd options UVMHIST_PRINT 715Like 716.Em UVMHIST , 717it prints the UVM history logs on the system console as entries are added. 718Note that the output is 719.Em extremely 720voluminous, so this option is really only useful for debugging 721the very earliest parts of kernel initialization. 722.It Cd options UVMHIST_MAPHIST_SIZE 723Set the size of the 724.Dq maphist 725kernel history. 726The default is 100. 727This option depends upon the 728.Em UVMHIST 729option. 730.It Cd options UVMHIST_PDHIST_SIZE 731Set the size of the 732.Dq pdhist 733kernel history. 734The default is 100. 735This option depends upon the 736.Em UVMHIST 737option. 738.It Cd options BIOHIST 739Like 740.Em KERNHIST , 741it enables the BIO history logs. 742These logs can be displayed by using 743.Cm show kernhist 744from DDB, and can help in debugging problems with Buffered I/O operations. 745See the kernel source file 746.Pa sys/kern/vfs_vio.c 747for details. 748.It Cd options BIOHIST_PRINT 749Like 750.Em BIOHIST , 751it prints the BIO history logs on the system console as entries are added. 752Note that the output is 753.Em extremely 754voluminous, so this option is really only useful for debugging 755the very earliest parts of kernel initialization. 756.It Cd options BIOHIST_SIZE 757Set the size of the 758.Dq biohist 759kernel history. 760The default is 500. 761This option depends upon the 762.Em BIOHIST 763option. 764.El 765.Ss File Systems 766.Bl -ohang 767.It Cd file-system FFS 768Includes code implementing the Berkeley Fast File System 769.Po Em FFS Pc . 770Most machines need this if they are not running diskless. 771.It Cd file-system EXT2FS 772Includes code implementing the Second Extended File System 773.Po Em ext2 Pc , 774revision 0 and revision 1 with the 775.Em filetype , 776.Em sparse_super 777and 778.Em large_file 779options. 780This is the most commonly used file system on the Linux operating system, 781and is provided here for compatibility. 782Some of the specific features of 783.Em ext2 784like the "behavior on errors" are not implemented. 785See 786.Xr mount_ext2fs 8 787for details. 788.It Cd file-system LFS 789.Bq Em EXPERIMENTAL 790Include the Log-structured File System 791.Po Em LFS Pc . 792See 793.Xr mount_lfs 8 794and 795.Xr newfs_lfs 8 796for details. 797.It Cd file-system MFS 798Include the Memory File System 799.Po Em MFS Pc . 800This file system stores files in swappable memory, and produces 801notable performance improvements when it is used as the file store 802for 803.Pa /tmp 804and similar file systems. 805See 806.Xr mount_mfs 8 807for details. 808.It Cd file-system NFS 809Include the client side of the Network File System (NFS) 810remote file sharing protocol. 811Although the bulk of the code implementing NFS 812is kernel based, several user level daemons are needed for it to work. 813See 814.Xr mount_nfs 8 815for details. 816.It Cd file-system CD9660 817Includes code for the ISO 9660 + Rock Ridge file system, which is 818the standard file system on many CD-ROM discs. 819Useful primarily if you have a CD-ROM drive. 820See 821.Xr mount_cd9660 8 822for details. 823.It Cd file-system MSDOSFS 824Includes the MS-DOS FAT file system, which is reportedly still used 825by unfortunate people who have not heard about 826.Nx . 827Also implements the Windows 95 extensions to the same, which permit 828the use of longer, mixed case file names. 829See 830.Xr mount_msdos 8 831and 832.Xr fsck_msdos 8 833for details. 834.It Cd file-system NTFS 835.Bq Em EXPERIMENTAL 836Includes code for the Microsoft Windows NT file system. 837See 838.Xr mount_ntfs 8 839for details. 840.It Cd file-system FDESC 841Includes code for a file system, conventionally mounted on 842.Pa /dev/fd , 843which permits access to the per-process file descriptor space via 844special files in the file system. 845See 846.Xr mount_fdesc 8 847for details. 848Note that this facility is redundant, and thus unneeded on most 849.Nx 850systems, since the 851.Xr fd 4 852pseudo-device driver already provides identical functionality. 853On most 854.Nx 855systems, instances of 856.Xr fd 4 857are mknoded under 858.Pa /dev/fd/ 859and on 860.Pa /dev/stdin , 861.Pa /dev/stdout , 862and 863.Pa /dev/stderr . 864.It Cd file-system KERNFS 865Includes code which permits the mounting of a special file system 866(normally mounted on 867.Pa /kern ) 868in which files representing various kernel variables and parameters 869may be found. 870See 871.Xr mount_kernfs 8 872for details. 873.It Cd file-system NULLFS 874Includes code for a loopback file system. 875This permits portions of the file hierarchy to be re-mounted in other places. 876The code really exists to provide an example of a stackable file system layer. 877See 878.Xr mount_null 8 879for details. 880.It Cd file-system OVERLAY 881Includes code for a file system filter. 882This permits the overlay file system to intercept all access to an underlying 883file system. 884This file system is intended to serve as an example of a stacking file 885system which has a need to interpose itself between an underlying file 886system and all other access. 887See 888.Xr mount_overlay 8 889for details. 890.It Cd file-system PROCFS 891Includes code for a special file system (conventionally mounted on 892.Pa /proc ) 893in which the process space becomes visible in the file system. 894Among 895other things, the memory spaces of processes running on the system are 896visible as files, and signals may be sent to processes by writing to 897.Pa ctl 898files in the procfs namespace. 899See 900.Xr mount_procfs 8 901for details. 902.It Cd file-system UDF 903.Bq Em EXPERIMENTAL 904Includes code for the UDF file system commonly found on CD and DVD 905media but also on USB sticks. 906Currently supports read and write access up to UDF 2.01 and somewhat limited 907write support for UDF 2.50. 908It is marked experimental since there is no 909.Xr fsck_udf 8 . 910See 911.Xr mount_udf 8 912for details. 913.It Cd file-system UMAPFS 914Includes a loopback file system in which user and group IDs may be 915remapped \(em this can be useful when mounting alien file systems with 916different UIDs and GIDs than the local system. 917See 918.Xr mount_umap 8 919for details. 920.It Cd file-system UNION 921.Bq Em EXPERIMENTAL 922Includes code for the union file system, which permits directories to 923be mounted on top of each other in such a way that both file systems 924remain visible \(em this permits tricks like allowing writing (and the 925deleting of files) on a read-only file system like a CD-ROM by 926mounting a local writable file system on top of the read-only file 927system. 928See 929.Xr mount_union 8 930for details. 931.It Cd file-system CODA 932.Bq Em EXPERIMENTAL 933Includes code for the Coda file system. 934Coda is a distributed file system like NFS and AFS. 935It is freely available, like NFS, but it functions much like AFS in being a 936.Dq stateful 937file system. 938Both Coda and AFS cache files on your local machine to improve performance. 939Then Coda goes a step further than AFS by letting you access the cached 940files when there is no available network, viz. disconnected laptops and 941network outages. 942In Coda, both the client and server are outside the kernel which makes 943them easier to experiment with. 944Coda is available for several UNIX and non-UNIX platforms. 945See 946.Lk http://www.coda.cs.cmu.edu 947for more details. 948.Em NOTE : 949You also need to enable the pseudo-device, vcoda, for the Coda 950file system to work. 951.It Cd file-system PTYFS 952Includes code for a special file system (normally mounted on 953.Pa /dev/pts ) 954in which pseudo-terminal slave devices become visible in the file system. 955See 956.Xr mount_ptyfs 8 957for details. 958.It Cd file-system TMPFS 959Includes code for the efficient memory file system, normally used over 960.Pa /tmp . 961See 962.Xr mount_tmpfs 8 963for details. 964.It Cd file-system PUFFS 965Includes kernel support for the pass-to-userspace framework file system. 966It can be used to implement file system functionality in userspace. 967See 968.Xr puffs 3 969for more details. 970This enables for example sshfs: 971.Xr mount_psshfs 8 . 972.El 973.Ss File System Options 974.Bl -ohang 975.It Cd options DISKLABEL_EI 976Enable 977.Dq Endian-Independent 978.Xr disklabel 5 979support. 980This allows a system to recognize a disklabel written in the other byte order. 981For writing, when a label already exists, its byte order is preserved. 982Otherwise, a new label is written in the native byte order. 983To specify the byte order explicitly, the 984.Fl F 985option of 986.Xr disklabel 8 987should be used with the 988.Fl B 989option in order to avoid using 990.Xr ioctl 2 , 991which results in the default behavior explained above. 992At the moment this option is restricted to the following ports: 993amd64, bebox, emips, epoc32, evbarm, i386, ibmnws, landisk, mvmeppc, prep, 994.\" riscv, 995rs6000, sandpoint, 996.\" usermode, 997xen, and zaurus; 998also to machines of the 999evbmips and evbppc ports that support 1000Master Boot Record (MBR). 1001.It Cd options MAGICLINKS 1002Enables the expansion of special strings 1003.Po 1004beginning with 1005.Dq @ 1006.Pc 1007when traversing symbolic links. 1008See 1009.Xr symlink 7 1010for a list of supported strings. 1011Note that this option only controls the enabling of this feature 1012by the kernel at boot-up. 1013This feature can still be manipulated with the 1014.Xr sysctl 8 1015command regardless of the setting of this option. 1016.It Cd options NFSSERVER 1017Include the server side of the 1018.Em NFS 1019(Network File System) remote file sharing protocol. 1020Although the bulk of the code implementing 1021.Em NFS 1022is kernel based, several user level daemons are needed for it to 1023work. 1024See 1025.Xr mountd 8 1026and 1027.Xr nfsd 8 1028for details. 1029.It Cd options NVNODE=integer 1030This option sets the size of the cache used by the name-to-inode translation 1031routines, (a.k.a. the 1032.Fn namei 1033cache, though called by many other names in the kernel source). 1034By default, this cache has 1035.Dv ( NPROC + NTEXT + 100 ) 1036entries (NPROC set as 20 + 16 * MAXUSERS and NTEXT as 80 + NPROC / 8). 1037A reasonable way to derive a value of 1038.Dv NVNODE , 1039should you notice a large number of namei cache misses with a tool such as 1040.Xr systat 1 , 1041is to examine your system's current computed value with 1042.Xr sysctl 8 , 1043(which calls this parameter "kern.maxvnodes") and to increase this value 1044until either the namei cache hit rate improves or it is determined that 1045your system does not benefit substantially from an increase in the size of 1046the namei cache. 1047.It Cd options NAMECACHE_ENTER_REVERSE 1048Causes the namei cache to always enter a reverse mapping (vnode -> name) 1049as well as a normal one. 1050Normally, this is already done for directory vnodes, to speed up the getcwd 1051operation. 1052This option will cause longer hash chains in the reverse cache, and thus 1053slow down getcwd somewhat. 1054However, it does make vnode -> path translations possible in some cases. 1055For now, only useful if strict 1056.Pa /proc/#/maps 1057emulation for Linux binaries is required. 1058.El 1059.Ss Options for FFS/UFS File Systems 1060.Bl -ohang 1061.It Cd options APPLE_UFS 1062Enable support for UFS file systems created on Mac OS X. 1063.It Cd options FFS_EI 1064Enable 1065.Dq Endian-Independent 1066FFS support. 1067This allows a system to mount an FFS file system created for another 1068architecture, at a small performance cost for all FFS file systems. 1069See also 1070.Xr newfs 8 , 1071.Xr fsck_ffs 8 , 1072.Xr dumpfs 8 1073for file system byte order status and manipulation. 1074.It Cd options FFS_NO_SNAPSHOT 1075Disable support for the creation of file system internal snapshot 1076of FFS file systems. 1077Maybe useful for install media kernels, small memory systems and 1078embedded systems which don't require the snapshot support. 1079.It Cd options QUOTA 1080Enables kernel support for traditional quotas in FFS. 1081Traditional quotas store the quota information in external files and 1082require 1083.Xr quotacheck 8 1084and 1085.Xr quotaon 8 1086at boot time. 1087Traditional quotas are limited to 32-bit sizes and are at this point 1088considered a legacy feature. 1089.It Cd options QUOTA2 1090Enables kernel support for in-volume quotas in FFS. 1091The quota information is file system metadata maintained by 1092.Xr fsck 8 1093and/or WAPBL journaling. 1094MFS volumes can also use 1095.Dv QUOTA2 1096quotas; see 1097.Xr mount_mfs 8 1098for more information. 1099.It Cd options UFS_DIRHASH 1100Increase lookup performance by maintaining in-core hash tables 1101for large directories. 1102.It Cd options UFS_EXTATTR 1103Enable extended attribute support for UFS1 file systems. 1104.It Cd options WAPBL 1105Enable 1106.Dq Write Ahead Physical Block Logging file system journaling . 1107This provides rapid file system consistency checking after a system outage. 1108It also provides better general use performance over regular FFS. 1109See also 1110.Xr wapbl 4 . 1111.El 1112.Ss Options for the LFS File System 1113.Bl -ohang 1114.\" .It Cd options LFS_KERNEL_RFW 1115.\" There is no documentation for this. (XXX) 1116.\" .It Cd options LFS_QUOTA 1117.\" Enable traditional quota support for LFS. 1118.\" (It is not clear if this works.) 1119.\" .It Cd options LFS_QUOTA2 1120.\" Enable modernized 64-bit quota support for LFS. 1121.\" (This does not work yet.) 1122.It Cd options LFS_EI 1123Enable 1124.Dq Endian-Independent 1125LFS support. 1126This allows (at a small performance cost) mounting an LFS file system 1127created for another architecture. 1128.\" .It Cd options LFS_EXTATTR 1129.\" Enable extended attribute support for LFS. 1130.\" (It is not clear if this works.) 1131.It Cd options LFS_DIRHASH 1132Increase lookup performance by maintaining in-core hash tables 1133for large directories. 1134.El 1135.Ss Options for the ext2fs File System 1136.Bl -ohang 1137.It Cd options EXT2FS_SYSTEM_FLAGS 1138This option changes the behavior of the APPEND and IMMUTABLE flags 1139for a file on an 1140.Em ext2 1141file system. 1142Without this option, the superuser or owner of the file can 1143set and clear them. 1144With this option, only the superuser can set them, and 1145they can't be cleared if the securelevel is greater than 0. 1146See also 1147.Xr chflags 1 1148and 1149.Xr secmodel_securelevel 9 . 1150.El 1151.Ss Options for the NFS File System 1152.Bl -ohang 1153.It Cd options NFS_BOOT_BOOTP 1154Enable use of the BOOTP protocol (RFCs 951 and 1048) to get configuration 1155information if NFS is used to mount the root file system. 1156See 1157.Xr diskless 8 1158for details. 1159.It Cd options NFS_BOOT_BOOTSTATIC 1160Enable use of static values defined as 1161.Dq NFS_BOOTSTATIC_MYIP , 1162.Dq NFS_BOOTSTATIC_GWIP , 1163.Dq NFS_BOOTSTATIC_SERVADDR , 1164and 1165.Dq NFS_BOOTSTATIC_SERVER 1166in kernel options to get configuration information 1167if NFS is used to mount the root file system. 1168.It Cd options NFS_BOOT_DHCP 1169Same as 1170.Dq NFS_BOOT_BOOTP , 1171but use the DHCP extensions to the 1172BOOTP protocol (RFC 1541). 1173.It Cd options NFS_BOOT_BOOTP_REQFILE 1174Specifies the string sent in the bp_file field of the BOOTP/DHCP 1175request packet. 1176.It Cd options NFS_BOOT_BOOTPARAM 1177Enable use of the BOOTPARAM protocol, consisting of RARP and 1178BOOTPARAM RPC, to get configuration information if NFS 1179is used to mount the root file system. 1180See 1181.Xr diskless 8 1182for details. 1183.It Cd options NFS_BOOT_RWSIZE=value 1184Set the initial NFS read and write sizes for diskless-boot requests. 1185The normal default is 8Kbytes. 1186This option provides a way to lower the value (e.g., to 1024 bytes) 1187as a workaround for buggy network interface cards or boot PROMs. 1188Once booted, the read and write request sizes can be increased by 1189remounting the file system. 1190See 1191.Xr mount_nfs 8 1192for details. 1193.It Cd options NFS_V2_ONLY 1194Reduce the size of the NFS client code by omitting code that's only required 1195for NFSv3 and NQNFS support, leaving only that code required to use NFSv2 1196servers. 1197.It Cd options NFS_BOOT_UDP 1198Use NFS over UDP instead of the default TCP, for mounting root. 1199.El 1200.Ss Buffer queue strategy options 1201The following options enable alternative buffer queue strategies. 1202.Bl -ohang 1203.It Cd options BUFQ_READPRIO 1204Enable alternate buffer queue strategy for disk I/O. 1205In the default strategy, outstanding disk requests are ordered by 1206sector number and sent to the disk, regardless of whether the 1207operation is a read or write; this option gives priority to issuing 1208read requests over write requests. 1209Although requests may therefore be issued out of sector-order, causing 1210more seeks and thus lower overall throughput, interactive system 1211responsiveness under heavy disk I/O load may be improved, as processes 1212blocking on disk reads are serviced sooner (file writes typically 1213don't cause applications to block). 1214The performance effect varies greatly depending on the hardware, drive 1215firmware, file system configuration, workload, and desired performance 1216trade-off. 1217Systems using drive write-cache (most modern IDE disks, by default) 1218are unlikely to benefit and may well suffer; such disks acknowledge 1219writes very quickly, and optimize them internally according to 1220physical layout. 1221Giving these disks as many requests to work with as possible (the 1222standard strategy) will typically produce the best results, especially 1223if the drive has a large cache; the drive will silently complete 1224writes from cache as it seeks for reads. 1225Disks that support a large number of concurrent tagged requests (SCSI 1226disks and many hardware RAID controllers) expose this internal 1227scheduling with tagged responses, and don't block for reads; such 1228disks may not see a noticeable difference with either strategy. 1229However, if IDE disks are run with write-cache disabled for safety, 1230writes are not acknowledged until actually completed, and only one 1231request can be outstanding; a large number of small writes in one 1232locality can keep the disk busy, starving reads elsewhere on the disk. 1233Such systems are likely to see the most benefit from this option. 1234Finally, the performance interaction of this option with ffs soft 1235dependencies can be subtle, as that mechanism can drastically alter 1236the workload for file system metadata writes. 1237.It Cd options BUFQ_PRIOCSCAN 1238Enable another buffer queue strategy for disk I/O, per-priority cyclical scan. 1239.It Cd options NEW_BUFQ_STRATEGY 1240Synonym of 1241.Em BUFQ_READPRIO . 1242.El 1243.Ss Miscellaneous Options 1244.Bl -ohang 1245.It Cd options CPU_UCODE 1246Support cpu microcode loading via 1247.Xr cpuctl 8 . 1248.It Cd options MEMORY_DISK_DYNAMIC 1249This option makes the 1250.Xr md 4 1251RAM disk size dynamically sized. 1252It is incompatible with 1253.Xr mdsetimage 8 . 1254.It Cd options MEMORY_DISK_HOOKS 1255This option allows for some machine dependent functions to be called when 1256the 1257.Xr md 4 1258RAM disk driver is configured. 1259This can result in automatically loading a RAM disk from floppy on 1260open (among other things). 1261.It Cd options MEMORY_DISK_IS_ROOT 1262Forces the 1263.Xr md 4 1264RAM disk to be the root device. 1265This can only be overridden when 1266the kernel is booted in the 'ask-for-root' mode. 1267.It Cd options MEMORY_DISK_ROOT_SIZE=integer 1268Allocates the given number of 512 byte blocks as memory for the 1269.Xr md 4 1270RAM disk, to be populated with 1271.Xr mdsetimage 8 . 1272.It Cd options MEMORY_DISK_SERVER=0 1273Do not include the interface to a userland memory disk server process. 1274Per default, this option is set to 1, including the support code. 1275Useful for install media kernels. 1276.It Cd options MEMORY_DISK_RBFLAGS=value 1277This option sets the 1278.Xr reboot 2 1279flags used when booting with a memory disk as root file system. 1280Possible values include 1281.Dv RB_AUTOBOOT 1282(boot in the usual fashion - default value), and 1283.Dv RB_SINGLE 1284(boot in single-user mode). 1285.It Cd options MODULAR 1286Enables the framework for kernel modules (see 1287.Xr module 7 ) . 1288.It Cd options MODULAR_DEFAULT_AUTOLOAD 1289Enables the autoloading of kernel modules by default. 1290This sets the default value of the 1291.Em kern.module.autoload 1292.Xr sysctl 3 1293variable which may be changed at run time. 1294.It Cd options MODULAR_DEFAULT_VERBOSE 1295Enables verbose debug messages of kernel modules by default. 1296This sets the default value of the 1297.Em kern.module.verbose 1298.Xr sysctl 3 1299variable which may be changed at run time. 1300.It Cd options VND_COMPRESSION 1301Enables the 1302.Xr vnd 4 1303driver to also handle compressed images. 1304See 1305.Xr vndcompress 1 , 1306.Xr vnd 4 1307and 1308.Xr vnconfig 8 1309for more information. 1310.It Cd options SELFRELOC 1311Make the kernel able to self relocate at bootstrap, so that it can 1312run whatever its load address is. 1313This is intented to be used withe the 1314.Ic reloc 1315boostrap command documented in 1316.Xr x86/boot 8 , 1317to workaround UEFI bugs, and is only available on amd64. 1318.It Cd options SPLDEBUG 1319Help the kernel programmer find bugs related to the interrupt priority 1320level. 1321When 1322.Fn spllower 1323or 1324.Fn splraise 1325changes the current CPU's interrupt priority level to or from 1326.Dv IPL_HIGH , 1327record a backtrace. 1328Read 1329.Xr i386/return_address 9 1330for caveats about collecting backtraces. 1331This feature is experimental, and it is only available on i386. 1332See 1333.Pa sys/kern/subr_spldebug.c . 1334.It Cd options TFTPROOT 1335Download the root memory disk through TFTP at root mount time. 1336This enables the use of a root RAM disk without requiring it to be 1337embedded in the kernel using 1338.Xr mdsetimage 8 . 1339The RAM disk name is obtained using DHCP's filename parameter. 1340This option requires 1341.Em MEMORY_DISK_HOOKS 1342and 1343.Em MEMORY_DISK_DYNAMIC . 1344It is incompatible with 1345.Em MEMORY_DISK_ROOT_SIZE . 1346.It Cd options HEARTBEAT 1347Turns on heartbeat checks to panic if any CPU in the system or the 1348timecounter appears stuck. 1349.Pp 1350Each CPU will periodically check in hard interrupt context that the 1351timecounter has advanced and soft interrupts have run on the current 1352CPU, and each CPU will also be periodically checked for progress by 1353another CPU. 1354.Pp 1355If a CPU detects no progress has been made after 1356.Dv HEARTBEAT_MAX_PERIOD 1357seconds, 1358.Nx 1359will panic, giving the opportunity to enter ddb or get a crash dump 1360even if the system has become totally unresponsive to keyboard input. 1361.Pp 1362This is different from a hardware watchdog timer 1363.Pq Xr wdogctl 8 : 1364.Bl -bullet 1365.It 1366.Cd options HEARTBEAT 1367is purely a software mechanism, so if hard interrupts are stuck on all 1368CPUs, then 1369.Cd options HEARTBEAT 1370cannot trigger, but a hardware watchdog timer can. 1371.It 1372A hardware watchdog timer won't notice if a single CPU is stuck, or if 1373the system timecounter is stuck, as long as at least one CPU is not 1374stuck and able to run 1375.Xr wdogctl 8 1376or the kernel watchdog tickle thread. 1377In contrast, 1378.Cd options HEARTBEAT 1379uses hard interrupts on each CPU to cross-check soft interrupt progress 1380on another CPU as well as the timecounter, so it can detect when a 1381single CPU is unable to make progress when others are able. 1382.El 1383.It Cd options HEARTBEAT_MAX_PERIOD_DEFAULT=integer 1384Time in seconds since the last 1385.Cd options HEARTBEAT 1386progress check has passed before it will trigger a panic. 1387Default: 15. 1388.Pp 1389Can be changed at runtime via the 1390.Li kern.heartbeat.max_period 1391.Xr sysctl 7 1392knob. 1393.It Cd options HZ=integer 1394On ports that support it, set the system clock frequency (see 1395.Xr hz 9 ) 1396to the supplied value. 1397Handle with care. 1398.It Cd options NTP 1399Turns on in-kernel precision timekeeping support used by software 1400implementing 1401.Em NTP 1402(Network Time Protocol, RFC 1305). 1403The 1404.Em NTP 1405option adds an in-kernel Phase-Locked Loop (PLL) for normal 1406.Em NTP 1407operation, and a Frequency-Locked Loop (FLL) for intermittently-connected 1408operation. 1409.Xr ntpd 8 1410will employ a user-level PLL when kernel support is unavailable, 1411but the in-kernel version has lower latency and more precision, and 1412so typically keeps much better time. 1413.Pp 1414The interface to the kernel 1415.Em NTP 1416support is provided by the 1417.Xr ntp_adjtime 2 1418and 1419.Xr ntp_gettime 2 1420system calls, which are intended for use by 1421.Xr ntpd 8 1422and are enabled by the option. 1423On systems with sub-microsecond resolution timers, or where (HZ/100000) 1424is not an integer, the 1425.Em NTP 1426option also enables extended-precision arithmetic to keep track of 1427fractional clock ticks at NTP time-format precision. 1428.It Cd options PPS_SYNC 1429This option enables a kernel serial line discipline for receiving time 1430phase signals from an external reference clock such as a radio clock. 1431.Po 1432The 1433.Em NTP 1434option (which see) must be on if the 1435.Em PPS_SYNC 1436option is used 1437.Pc . 1438Some reference clocks generate a Pulse Per Second (PPS) signal in 1439phase with their time source. 1440The 1441.Em PPS 1442line discipline receives this signal on either the data leads 1443or the DCD control lead of a serial port. 1444.Pp 1445.Em NTP 1446uses the PPS signal to discipline the local clock oscillator to a high 1447degree of precision (typically less than 50 microseconds in time and 14480.1 ppm in accuracy). 1449.Em PPS 1450can also generate a serial output pulse when the system receives a PPS 1451interrupt. 1452This can be used to measure the system interrupt latency and thus calibrate 1453.Em NTP 1454to account for it. 1455Using 1456.Em PPS 1457usually requires a gadget box 1458to convert from TTL to RS-232 signal levels. 1459The gadget box and PPS are described in more detail in the HTML documentation 1460for 1461.Xr ntpd 8 1462in 1463.Pa /usr/share/doc/html/ntp . 1464.Pp 1465.Nx 1466currently supports this option in 1467.Xr com 4 1468and 1469.Xr zsc 4 . 1470.It Cd options SETUIDSCRIPTS 1471Allows scripts with the setuid bit set to execute as the effective 1472user rather than the real user, just like binary executables. 1473.Pp 1474.Em NOTE : 1475Using this option will also enable 1476.Em options FDSCRIPTS 1477.It Cd options FDSCRIPTS 1478Allows execution of scripts with the execute bit set, but not the 1479read bit, by opening the file and passing the file descriptor to 1480the shell, rather than the filename. 1481.Pp 1482.Em NOTE : 1483Execute only (non-readable) scripts will have 1484.Va argv[0] 1485set to 1486.Pa /dev/fd/* . 1487What this option allows as far as security is 1488concerned, is the ability to safely ensure that the correct script 1489is run by the interpreter, as it is passed as an already open file. 1490.It Cd options RTC_OFFSET=integer 1491The kernel (and typically the hardware battery backed-up clock on 1492those machines that have one) keeps time in 1493.Em UTC 1494(Universal Coordinated Time, once known as 1495.Em GMT , 1496or Greenwich Mean Time) 1497and not in the time of the local time zone. 1498The 1499.Em RTC_OFFSET 1500option is used on some ports (such as the i386) to tell the kernel 1501that the hardware clock is offset from 1502.Em UTC 1503by the specified number of minutes. 1504This is typically used when a machine boots several operating 1505systems and one of them wants the hardware clock to run in the 1506local time zone and not in 1507.Em UTC , 1508e.g. 1509.Em RTC_OFFSET=300 1510means 1511the hardware clock is set to US Eastern Time (300 minutes behind 1512.Em UTC ) , 1513and not 1514.Em UTC . 1515(Note: 1516.Em RTC_OFFSET 1517is used to initialize a kernel variable named 1518.Va rtc_offset 1519which is the source actually used to determine the clock offset, and 1520which may be accessed via the kern.rtc_offset sysctl variable. 1521See 1522.Xr sysctl 8 1523and 1524.Xr sysctl 3 1525for details. 1526Since the kernel clock is initialized from the hardware clock very 1527early in the boot process, it is not possible to meaningfully change 1528.Va rtc_offset 1529in system initialization scripts. 1530Changing this value currently may only be done at kernel compile 1531time or by patching the kernel and rebooting). 1532.Pp 1533.Em NOTE : 1534Unfortunately, in many cases where the hardware clock 1535is kept in local time, it is adjusted for Daylight Savings 1536Time; this means that attempting to use 1537.Em RTC_OFFSET 1538to let 1539.Nx 1540coexist with such an operating system, like Windows, 1541would necessitate changing 1542.Em RTC_OFFSET 1543twice a year. 1544As such, this solution is imperfect. 1545.It Cd options MAXUPRC=integer 1546Sets the soft 1547.Dv RLIMIT_NPROC 1548resource limit, which specifies the maximum number of simultaneous 1549processes a user is permitted to run, for process 0; 1550this value is inherited by its child processes. 1551It defaults to 1552.Em CHILD_MAX , 1553which is currently defined to be 160. 1554Setting 1555.Em MAXUPRC 1556to a value less than 1557.Em CHILD_MAX 1558is not permitted, as this would result in a violation of the semantics of 1559.St -p1003.1-90 . 1560.It Cd options NOFILE=integer 1561Sets the soft 1562.Dv RLIMIT_NOFILE 1563resource limit, which specifies the maximum number of open 1564file descriptors for each process; 1565this value is inherited by its child processes. 1566It defaults to 1567.Em OPEN_MAX , 1568which is currently defined to be 128. 1569.It Cd options MAXFILES=integer 1570Sets the default value of the 1571.Em kern.maxfiles 1572sysctl variable, which indicates the maximum number of files that may 1573be open in the system. 1574.It Cd options DEFCORENAME=string 1575Sets the default value of the 1576.Em kern.defcorename 1577sysctl variable, otherwise it is set to 1578.Nm %n.core . 1579See 1580.Xr sysctl 8 1581and 1582.Xr sysctl 3 1583for details. 1584.It Cd options RASOPS_CLIPPING 1585Enables clipping within the 1586.Nm rasops 1587raster-console output system. 1588.Em NOTE : 1589only available on architectures that use 1590.Nm rasops 1591for console output. 1592.It Cd options RASOPS_SMALL 1593Removes optimized character writing code from the 1594.Nm rasops 1595raster-console output system. 1596.Em NOTE : 1597only available on architectures that use 1598.Nm rasops 1599for console output. 1600.It Cd options INCLUDE_CONFIG_FILE 1601Embeds the kernel config file used to define the kernel in the kernel 1602binary itself. 1603The embedded data also includes any files directly included by the config 1604file itself, e.g. 1605.Pa GENERIC.local 1606or 1607.Pa std.$MACHINE . 1608The embedded config file can be extracted from the resulting kernel with 1609.Xr config 1 1610.Fl x , 1611or by the following command: 1612.Bd -literal -offset indent 1613strings netbsd | sed -n 's/^_CFG_//p' | unvis 1614.Ed 1615.It Cd options INCLUDE_JUST_CONFIG 1616Similar to the above option, but includes just the actual config file, 1617not any included files. 1618.It Cd options PIPE_SOCKETPAIR 1619Use slower, but smaller socketpair(2)-based pipe implementation instead 1620of default faster, but bigger one. 1621Primarily useful for installation kernels. 1622.It Cd options USERCONF 1623Compiles in the in-kernel device configuration manager. 1624See 1625.Xr userconf 4 1626for details. 1627.It Cd options SCDEBUG_DEFAULT 1628Used with the 1629.Cd options SYSCALL_DEBUG 1630described below to choose which types of events are displayed. 1631.Pp 1632.Bl -tag -width "SCDEBUG_KERNHIST" -compact -offset indent 1633.It Dv SCDEBUG_CALLS 1634Show system call entry points. 1635.It Dv SCDEBUG_RETURNS 1636Show system call exit points. 1637.It Dv SCDEBUG_ALL 1638Show all system call requests, including unimplemented calls. 1639.It Dv SCDEBUG_SHOWARGS 1640Show the arguments provided. 1641.It Dv SCDEBUG_KERNHIST 1642Store a restricted form of the system call debug in a kernel history 1643instead of printing it to the console. 1644This option relies upon 1645.Cd options KERNHIST . 1646.El 1647.Pp 1648The default value is 1649.Dv (SCDEBUG_CALLS|SCDEBUG_RETURNS|SCDEBUG_SHOWARGS) . 1650.It Cd options SYSCALL_DEBUG 1651Useful for debugging system call issues, usually in early single user bringup. 1652By default, writes entries to the system console for most system call events. 1653Can be configured with the 1654.Cd options SCDEBUG_DEFAULT 1655option to to use the 1656.Cd options KERNHIST 1657facility instead. 1658.It Cd options SYSCALL_STATS 1659Count the number of times each system call number is called. 1660The values can be read through the sysctl interface and displayed using 1661.Xr systat 1 . 1662.Em NOTE : 1663not yet available on all architectures. 1664.It Cd options SYSCALL_TIMES 1665Count the time spent (using 1666.Fn cpu_counter32 ) 1667in each system call. 1668.Em NOTE : 1669Using this option will also enable 1670.Cd options SYSCALL_STATS . 1671.It Cd options SYSCALL_TIMES_HASCOUNTER 1672Force use of 1673.Fn cpu_counter32 1674even if 1675.Fn cpu_hascounter 1676reports false. 1677Useful for systems where the cycle counter doesn't run at a constant rate 1678(e.g. Soekris boxes). 1679.It Cd options XSERVER_DDB 1680A supplement to XSERVER that adds support for entering 1681.Xr ddb 4 1682while in X11. 1683.It Cd options FILEASSOC 1684Support for 1685.Xr fileassoc 9 . 1686Required for 1687.Cd options PAX_SEGVGUARD 1688and 1689.Cd pseudo-device veriexec . 1690.It Cd options FILEASSOC_NHOOKS=integer 1691Number of storage slots per file for 1692.Xr fileassoc 9 . 1693Default is 4. 1694.El 1695.Ss Networking Options 1696.Bl -ohang 1697.It Cd options GATEWAY 1698Enables 1699.Em IPFORWARDING 1700and (on most ports) increases the size of 1701.Em NMBCLUSTERS . 1702In general, 1703.Em GATEWAY 1704is used to indicate that a system should act as a router, and 1705.Em IPFORWARDING 1706is not invoked directly. 1707(Note that 1708.Em GATEWAY 1709has no impact on protocols other than IP). 1710.Em GATEWAY 1711option also compiles IPv4 and IPv6 fast forwarding code into the kernel. 1712.It Cd options IPFORWARDING=value 1713If 1714.Em value 1715is 1 this enables IP routing behavior. 1716If 1717.Em value 1718is 0 (the default), it disables it. 1719The 1720.Em GATEWAY 1721option sets this to 1 automatically. 1722With this option enabled, the machine will forward IP datagrams destined 1723for other machines between its interfaces. 1724Note that even without this option, the kernel will 1725still forward some packets (such as source routed packets) \(em removing 1726.Em GATEWAY 1727and 1728.Em IPFORWARDING 1729is insufficient to stop all routing through a bastion host on a 1730firewall \(em source routing is controlled independently. 1731Note that IP forwarding may be turned on and off independently of the 1732setting of the 1733.Em IPFORWARDING 1734option through the use of the 1735.Em net.inet.ip.forwarding 1736sysctl variable. 1737If 1738.Em net.inet.ip.forwarding 1739is 1, IP forwarding is on. 1740See 1741.Xr sysctl 8 1742and 1743.Xr sysctl 3 1744for details. 1745.It Cd options IFA_STATS 1746Tells the kernel to maintain per-address statistics on bytes sent 1747and received over (currently) Internet and AppleTalk addresses. 1748.\"This can be a fairly expensive operation, so you probably want to 1749.\"keep this disabled. 1750The option is not recommended as it degrades system stability. 1751.It Cd options IFQ_MAXLEN=value 1752Increases the allowed size of the network interface packet queues. 1753The default queue size is 50 packets, and you do not normally need 1754to increase it. 1755.It Cd options IPSELSRC 1756Includes support for source-address selection policies. 1757See 1758.Xr in_getifa 9 . 1759.It Cd options MROUTING 1760Includes support for IP multicast routers. 1761You certainly want 1762.Em INET 1763with this. 1764Multicast routing is controlled by the 1765.Xr mrouted 8 1766daemon. 1767See also option 1768.Cd PIM . 1769.It Cd options PIM 1770Includes support for Protocol Independent Multicast (PIM) routing. 1771You need 1772.Em MROUTING 1773and 1774.Em INET 1775with this. 1776Software using this can be found e.g. in 1777.Pa pkgsrc/net/xorp . 1778.It Cd options INET 1779Includes support for the TCP/IP protocol stack. 1780You almost certainly want this. 1781See 1782.Xr inet 4 1783for details. 1784.It Cd options INET6 1785Includes support for the IPv6 protocol stack. 1786See 1787.Xr inet6 4 1788for details. 1789Unlike 1790.Em INET , 1791.Em INET6 1792enables multicast routing code as well. 1793This option requires 1794.Em INET 1795at this moment, but it should not. 1796.It Cd options ND6_DEBUG 1797The option sets the default value of net.inet6.icmp6.nd6_debug to 1, 1798for debugging IPv6 neighbor discovery protocol handling. 1799See 1800.Xr sysctl 3 1801for details. 1802.It Cd options IPSEC 1803Includes support for the IPsec protocol, using the implementation derived from 1804.Ox , 1805relying on 1806.Xr opencrypto 9 1807to carry out cryptographic operations. 1808See 1809.Xr ipsec 4 1810for details. 1811.It Cd options IPSEC_DEBUG 1812Enables debugging code in IPsec stack. 1813See 1814.Xr ipsec 4 1815for details. 1816The 1817.Cd IPSEC 1818option includes support for IPsec Network Address Translator traversal 1819(NAT-T), as described in RFCs 3947 and 3948. 1820This feature might be patent-encumbered in some countries. 1821.It Cd options ALTQ 1822Enabled ALTQ (Alternate Queueing). 1823For simple rate-limiting, use 1824.Xr tbrconfig 8 1825to set up the interface transmission rate. 1826To use queueing disciplines, their appropriate kernel options should also 1827be defined (documented below). 1828Queueing disciplines are managed by 1829.Xr altqd 8 . 1830See 1831.Xr altq 9 1832for details. 1833.It Cd options ALTQ_HFSC 1834Include support for ALTQ-implemented HFSC (Hierarchical Fair Service Curve) 1835module. 1836HFSC supports both link-sharing and guaranteed real-time services. 1837HFSC employs a service curve based QoS model, and its unique feature 1838is an ability to decouple delay and bandwidth allocation. 1839Requires 1840.Em ALTQ_RED 1841to use the RED queueing discipline on HFSC classes, or 1842.Em ALTQ_RIO 1843to use the RIO queueing discipline on HFSC classes. 1844This option assumes 1845.Em ALTQ . 1846.It Cd options ALTQ_PRIQ 1847Include support for ALTQ-implemented PRIQ (Priority Queueing). 1848PRIQ implements a simple priority-based queueing discipline. 1849A higher priority class is always served first. 1850Requires 1851.Em ALTQ_RED 1852to use the RED queueing discipline on HFSC classes, or 1853.Em ALTQ_RIO 1854to use the RIO queueing discipline on HFSC classes. 1855This option assumes 1856.Em ALTQ . 1857.It Cd options ALTQ_WFQ 1858Include support for ALTQ-implemented WFQ (Weighted Fair Queueing). 1859WFQ implements a weighted-round robin scheduler for a set of queues. 1860A weight can be assigned to each queue to give a different proportion 1861of the link capacity. 1862A hash function is used to map a flow to one of a set of queues. 1863This option assumes 1864.Em ALTQ . 1865.It Cd options ALTQ_FIFOQ 1866Include support for ALTQ-implemented FIFO queueing. 1867FIFOQ is a simple drop-tail FIFO (First In, First Out) queueing discipline. 1868This option assumes 1869.Em ALTQ . 1870.It Cd options ALTQ_RIO 1871Include support for ALTQ-implemented RIO (RED with In/Out). 1872The original RIO has 2 sets of RED parameters; one for in-profile 1873packets and the other for out-of-profile packets. 1874At the ingress of the network, profile meters tag packets as IN or 1875OUT based on contracted profiles for customers. 1876Inside the network, IN packets receive preferential treatment by 1877the RIO dropper. 1878ALTQ/RIO has 3 drop precedence levels defined for the Assured Forwarding 1879PHB of DiffServ (RFC 2597). 1880This option assumes 1881.Em ALTQ . 1882.It Cd options ALTQ_BLUE 1883Include support for ALTQ-implemented Blue buffer management. 1884Blue is another active buffer management mechanism. 1885This option assumes 1886.Em ALTQ . 1887.It Cd options ALTQ_FLOWVALVE 1888Include support for ALTQ-implemented Flowvalve. 1889Flowvalve is a simple implementation of a RED penalty box that identifies 1890and punishes misbehaving flows. 1891This option requires 1892.Em ALTQ_RED 1893and assumes 1894.Em ALTQ . 1895.It Cd options ALTQ_CDNR 1896Include support for ALTQ-implemented CDNR (diffserv traffic conditioner) 1897packet marking/manipulation. 1898Traffic conditioners are components to meter, mark, or drop incoming 1899packets according to some rules. 1900As opposed to queueing disciplines, traffic conditioners handle incoming 1901packets at an input interface. 1902This option assumes 1903.Em ALTQ . 1904.It Cd options ALTQ_NOPCC 1905Disables use of processor cycle counter to measure time in ALTQ. 1906This option should be defined for a non-Pentium i386 CPU which does not 1907have TSC, SMP (per-CPU counters are not in sync), or power management 1908which affects processor cycle counter. 1909This option assumes 1910.Em ALTQ . 1911.It Cd options ALTQ_IPSEC 1912Include support for IPsec in IPv4 ALTQ. 1913This option assumes 1914.Em ALTQ . 1915.It Cd options ALTQ_JOBS 1916Include support for ALTQ-implemented JoBS (Joint Buffer Management 1917and Scheduling). 1918This option assumes 1919.Em ALTQ . 1920.It Cd options ALTQ_AFMAP 1921Include support for an undocumented ALTQ feature that is used to map an IP 1922flow to an ATM VC (Virtual Circuit). 1923This option assumes 1924.Em ALTQ . 1925.It Cd options ALTQ_LOCALQ 1926Include support for ALTQ-implemented local queues. 1927Its practical use is undefined. 1928Assumes 1929.Em ALTQ . 1930.It Cd options SUBNETSARELOCAL 1931Sets default value for net.inet.ip.subnetsarelocal variable, which 1932controls whether non-directly-connected subnets of connected networks 1933are considered "local" for purposes of choosing the MSS for a TCP 1934connection. 1935This is mostly present for historic reasons and completely irrelevant if 1936you enable Path MTU discovery. 1937.It Cd options HOSTZEROBROADCAST 1938Sets default value for net.inet.ip.hostzerobroadcast variable, which 1939controls whether the zeroth host address of each connected subnet is 1940also considered a broadcast address. 1941Default value is "1", for compatibility with old systems; if this is 1942set to zero on all hosts on a subnet, you should be able to fit an extra 1943host per subnet on the 1944".0" address. 1945.It Cd options MCLSHIFT=value 1946This option is the base-2 logarithm of the size of mbuf clusters. 1947The 1948.Bx 1949networking stack keeps network packets in a linked 1950list, or chain, of kernel buffer objects called mbufs. 1951The system provides larger mbuf clusters as an optimization for 1952large packets, instead of using long chains for large packets. 1953The mbuf cluster size, 1954or 1955.Em MCLBYTES , 1956must be a power of two, and is computed as two raised to the power 1957.Em MCLSHIFT . 1958On systems with Ethernet network adapters, 1959.Em MCLSHIFT 1960is often set to 11, giving 2048-byte mbuf clusters, large enough to 1961hold a 1500-byte Ethernet frame in a single cluster. 1962Systems with network interfaces supporting larger frame sizes like 1963ATM, FDDI, or HIPPI may perform better with 1964.Em MCLSHIFT 1965set to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes, 1966respectively. 1967.It Cd options NETATALK 1968Include support for the AppleTalk protocol stack. 1969The kernel provides provision for the 1970.Em Datagram Delivery Protocol 1971(DDP), providing SOCK_DGRAM support and AppleTalk routing. 1972This stack is used by the 1973.Em NETATALK 1974package, which adds support for AppleTalk server services via user 1975libraries and applications. 1976.It Cd options BLUETOOTH 1977Include support for the Bluetooth protocol stack. 1978See 1979.Xr bluetooth 4 1980for details. 1981.It Cd options IPNOPRIVPORTS 1982Normally, only root can bind a socket descriptor to a so-called 1983.Dq privileged 1984TCP port, that is, a port number in the range 0-1023. 1985This option eliminates those checks from the kernel. 1986This can be useful if there is a desire to allow daemons without 1987privileges to bind those ports, e.g., on firewalls. 1988The security tradeoffs in doing this are subtle. 1989This option should only be used by experts. 1990.It Cd options TCP_DEBUG 1991Record the last 1992.Em TCP_NDEBUG 1993TCP packets with SO_DEBUG set, and decode to the console if 1994.Em tcpconsdebug 1995is set. 1996.It Cd options TCP_NDEBUG 1997Number of packets to record for 1998.Em TCP_DEBUG . 1999Defaults to 100. 2000.It Cd options TCP_SENDSPACE=value 2001.It Cd options TCP_RECVSPACE=value 2002These options set the max TCP window size to other sizes than the default. 2003The TCP window sizes can be altered via 2004.Xr sysctl 8 2005as well. 2006.It Cd options TCP_INIT_WIN=value 2007This option sets the initial TCP window size for non-local connections, 2008which is used when the transmission starts. 2009The default size is 1, but if the machine should act more aggressively, 2010the initial size can be set to some other value. 2011The initial TCP window size can be set via 2012.Xr sysctl 8 2013as well. 2014.It Cd options TCP_SIGNATURE 2015Enable MD5 TCP signatures (RFC 2385) to protect BGP sessions. 2016.It Cd options IPFILTER_LOG 2017This option, in conjunction with 2018.Em pseudo-device ipfilter , 2019enables logging of IP packets using IP-Filter. 2020.It Cd options IPFILTER_LOOKUP 2021This option enables the 2022IP-Filter 2023.Xr ippool 8 2024functionality to be enabled. 2025.It Cd options IPFILTER_COMPAT 2026This option enables older IP-Filter binaries to work. 2027.It Cd options IPFILTER_DEFAULT_BLOCK 2028This option sets the default policy of IP-Filter. 2029If it is set, IP-Filter will block packets by default. 2030.It Cd options MBUFTRACE 2031This option can help track down mbuf leaks. 2032When enabled, mbufs are tagged with the devices and protocols using them. 2033This can significantly decrease network performance, particularly 2034on MP systems. 2035This additional information can be viewed with 2036.Xr netstat 1 : 2037.Dl Ic netstat Fl mssv 2038Not all devices or protocols support this option. 2039.El 2040.Ss Sysctl Related Options 2041.Bl -ohang 2042.It Cd options SYSCTL_DISALLOW_CREATE 2043Disallows the creation or deletion of nodes from the sysctl tree, as 2044well as the assigning of descriptions to nodes that lack them, by any 2045process. 2046These operations are still available to kernel sub-systems, including 2047loadable kernel modules. 2048.It Cd options SYSCTL_DISALLOW_KWRITE 2049Prevents processes from adding nodes to the sysctl tree that make 2050existing kernel memory areas writable. 2051Sections of kernel memory can still be read and new nodes that own 2052their own data may still be writable. 2053.It Cd options SYSCTL_DEBUG_SETUP 2054Causes the SYSCTL_SETUP routines to print a brief message when they 2055are invoked. 2056This is merely meant as an aid in determining the order in which 2057sections of the tree are created. 2058.It Cd options SYSCTL_DEBUG_CREATE 2059Prints a message each time 2060.Fn sysctl_create , 2061the function that adds nodes to the tree, is called. 2062.It Cd options SYSCTL_INCLUDE_DESCR 2063Causes the kernel to include short, human readable descriptions for 2064nodes in the sysctl tree. 2065The descriptions can be retrieved programmatically (see 2066.Xr sysctl 3 ) , 2067or by the sysctl binary itself (see 2068.Xr sysctl 8 ) . 2069The descriptions are meant to give an indication of the purpose and/or 2070effects of a given node's value, not replace the documentation for the 2071given subsystem as a whole. 2072.El 2073.Ss System V IPC Options 2074.Bl -ohang 2075.It Cd options SYSVMSG 2076Includes support for 2077.At V 2078style message queues. 2079See 2080.Xr msgctl 2 , 2081.Xr msgget 2 , 2082.Xr msgrcv 2 , 2083.Xr msgsnd 2 . 2084.It Cd options SYSVSEM 2085Includes support for 2086.At V 2087style semaphores. 2088See 2089.Xr semctl 2 , 2090.Xr semget 2 , 2091.Xr semop 2 . 2092.It Cd options SEMMNI=value 2093Sets the number of 2094.At V 2095style semaphore identifiers. 2096The GENERIC config file for your port will have the default. 2097.It Cd options SEMMNS=value 2098Sets the number of 2099.At V 2100style semaphores in the system. 2101The GENERIC config file for your port will have the default. 2102.It Cd options SEMUME=value 2103Sets the maximum number of undo entries per process for 2104.At V 2105style semaphores. 2106The GENERIC config file for your port will have the default. 2107.It Cd options SEMMNU=value 2108Sets the number of undo structures in the system for 2109.At V 2110style semaphores. 2111The GENERIC config file for your port will have the default. 2112.It Cd options SYSVSHM 2113Includes support for 2114.At V 2115style shared memory. 2116See 2117.Xr shmat 2 , 2118.Xr shmctl 2 , 2119.Xr shmdt 2 , 2120.Xr shmget 2 . 2121.It Cd options SHMMAXPGS=value 2122Sets the maximum number of 2123.At V 2124style shared memory pages that are available through the 2125.Xr shmget 2 2126system call. 2127Default value is 1024 on most ports. 2128See 2129.Pa /usr/include/machine/vmparam.h 2130for the default. 2131.El 2132.Ss VM Related Options 2133.Bl -ohang 2134.It Cd options NMBCLUSTERS=value 2135The number of mbuf clusters the kernel supports. 2136Mbuf clusters are MCLBYTES in size (usually 2k). 2137The default value is calculated from the amount of physical memory. 2138Architectures without direct mapping also limit it based on the kmem_map size, 2139which is used as backing store. 2140Some archs limit the value with 2141.Sq NMBCLUSTERS_MAX . 2142See 2143.Pa /usr/include/machine/param.h 2144for those archs. 2145This value can be accessed via the kern.mbuf.nmbclusters sysctl variable. 2146Increase this value if you get 2147.Dq mclpool limit reached 2148messages. 2149.It Cd options NMBCLUSTERS_MAX=value 2150The upper limit of NMBCLUSTERS. 2151.It Cd options NKMEMPAGES=value 2152.It Cd options NKMEMPAGES_MIN=value 2153.It Cd options NKMEMPAGES_MAX=value 2154Size of kernel VM map 2155.Em kmem_map , 2156in PAGE_SIZE-sized chunks (the VM page size; this value may be read 2157from the 2158.Xr sysctl 8 2159variable 2160.Em hw.pagesize 2161). 2162This VM map is used to map the kernel malloc arena. 2163The kernel attempts to auto-size this map based on the amount of 2164physical memory in the system. 2165Platform-specific code may place bounds on this computed size, 2166which may be viewed with the 2167.Xr sysctl 8 2168variable 2169.Em vm.nkmempages . 2170See 2171.Pa /usr/include/machine/param.h 2172for the default upper and lower bounds. 2173The related options 2174.Sq NKMEMPAGES_MIN 2175and 2176.Sq NKMEMPAGES_MAX 2177allow the bounds to be overridden in the kernel configuration file. 2178These options are provided in the event the computed value is 2179insufficient resulting in an 2180.Dq out of space in kmem_map 2181panic. 2182.It Cd options SB_MAX=value 2183Sets the max size in bytes that a socket buffer is allowed to occupy. 2184The default is 256k, but sometimes it needs to be increased, for example 2185when using large TCP windows. 2186This option can be changed via 2187.Xr sysctl 8 2188as well. 2189.It Cd options SOMAXKVA=value 2190Sets the maximum size of kernel virtual memory that the socket buffers 2191are allowed to use. 2192The default is 16MB, but in situations where for example large TCP 2193windows are used this value must also be increased. 2194This option can be changed via 2195.Xr sysctl 8 2196as well. 2197.It Cd options BUFCACHE=value 2198Size of the buffer cache as a percentage of total available RAM. 2199Ignored if BUFPAGES is also specified. 2200.It Cd options NBUF=value 2201Sets the number of buffer headers available, i.e., the number of 2202open files that may have a buffer cache entry. 2203Each buffer header 2204requires MAXBSIZE (machine dependent, but usually 65536) bytes. 2205The default value is machine dependent, but is usually equal to the 2206value of BUFPAGES. 2207.It Cd options BUFPAGES=value 2208These options set the number of pages available for the buffer cache. 2209Their default value is a machine dependent value, often calculated as 2210between 5% and 10% of total available RAM. 2211.It Cd options MAXTSIZ=bytes 2212Sets the maximum size limit of a process' text segment. 2213See 2214.Pa /usr/include/machine/vmparam.h 2215for the port-specific default. 2216.It Cd options DFLDSIZ=bytes 2217Sets the default size limit of a process' data segment, the value that 2218will be returned as the soft limit for 2219.Dv RLIMIT_DATA 2220(as returned by 2221.Xr getrlimit 2 ) . 2222See 2223.Pa /usr/include/machine/vmparam.h 2224for the port-specific default. 2225.It Cd options MAXDSIZ=bytes 2226Sets the maximum size limit of a process' data segment, the value that 2227will be returned as the hard limit for 2228.Dv RLIMIT_DATA 2229(as returned by 2230.Xr getrlimit 2 ) . 2231See 2232.Pa /usr/include/machine/vmparam.h 2233for the port-specific default. 2234.It Cd options DFLSSIZ=bytes 2235Sets the default size limit of a process' stack segment, the value that 2236will be returned as the soft limit for 2237.Dv RLIMIT_STACK 2238(as returned by 2239.Xr getrlimit 2 ) . 2240See 2241.Pa /usr/include/machine/vmparam.h 2242for the port-specific default. 2243.It Cd options MAXSSIZ=bytes 2244Sets the maximum size limit of a process' stack segment, the value that 2245will be returned as the hard limit for 2246.Dv RLIMIT_STACK 2247(as returned by 2248.Xr getrlimit 2 ) . 2249See 2250.Pa /usr/include/machine/vmparam.h 2251for the port-specific default. 2252.It Cd options DUMP_ON_PANIC=integer 2253Defaults to one. 2254If set to zero, the kernel will not dump to the dump device when 2255it panics, though dumps can still be forced via 2256.Xr ddb 4 2257with the 2258.Dq sync 2259command. 2260Note that this sets the value of the 2261.Em kern.dump_on_panic 2262.Xr sysctl 3 2263variable which may be changed at run time \(em see 2264.Xr sysctl 8 2265for details. 2266.It Cd options VMSWAP 2267Enable paging device/file support. 2268This option is on by default. 2269.It Cd options VMSWAP_DEFAULT_PLAINTEXT 2270Store swap in plaintext, not encrypted, which may expose secrets if the 2271underlying nonvolatile medium is disclosed. 2272This option is off by default; it is available only for extremely slow 2273machines where the performance impact of swapping early at boot 2274outweighs the security risks. 2275Swap encryption can still be turned on dynamically with the 2276.Em vm.swap_encrypt 2277.Xr sysctl 7 2278knob. 2279.It Cd options PDPOLICY_CLOCKPRO 2280Use CLOCK-Pro, an alternative page replace policy. 2281.El 2282.Ss Security Options 2283.Bl -ohang 2284.It Cd options INSECURE 2285Initializes the kernel security level with \-1 instead of 0. 2286This means that the system always starts in secure level \-1 mode, even when 2287running multiuser, unless the securelevel variable is set to value > \-1 in 2288.Pa /etc/rc.conf . 2289In this case the kernel security level will be raised to that value when the 2290.Pa /etc/rc.d/securelevel 2291script is run during system startup. 2292See the manual page for 2293.Xr init 8 2294for details on the implications of this. 2295The kernel secure level may manipulated by the superuser by altering the 2296.Em kern.securelevel 2297.Xr sysctl 3 2298variable (the secure level may only be lowered by a call from process ID 1, 2299i.e., 2300.Xr init 8 ) . 2301See also 2302.Xr secmodel_securelevel 9 , 2303.Xr sysctl 8 2304and 2305.Xr sysctl 3 . 2306.It Cd options VERIFIED_EXEC_FP_SHA256 2307Enables support for SHA256 hashes in Veriexec. 2308.It Cd options VERIFIED_EXEC_FP_SHA384 2309Enables support for SHA384 hashes in Veriexec. 2310.It Cd options VERIFIED_EXEC_FP_SHA512 2311Enables support for SHA512 hashes in Veriexec. 2312.It Cd options PAX_MPROTECT=value 2313Enables PaX MPROTECT, 2314.Xr mprotect 2 2315restrictions from the PaX project. 2316.Pp 2317The 2318.Ar value 2319is the default value for the 2320.Em global 2321knob, see 2322.Xr sysctl 3 . 2323If 0, PaX MPROTECT will be enabled only if explicitly set on programs 2324using 2325.Xr paxctl 8 . 2326If 1, PaX MPROTECT will be enabled for all programs. 2327Programs can be exempted using 2328.Xr paxctl 8 . 2329.Pp 2330See 2331.Xr security 7 2332for more details. 2333.It Cd options PAX_SEGVGUARD=value 2334Enables PaX Segvguard. 2335Requires 2336.Cd options FILEASSOC . 2337.Pp 2338The 2339.Ar value 2340is the default value for the 2341.Em global 2342knob, see 2343.Xr sysctl 3 . 2344If 0, PaX Segvguard will be enabled only if explicitly set on programs 2345using 2346.Xr paxctl 8 . 2347If 1, PaX Segvguard will be enabled to all programs, and exemption can 2348be done using 2349.Xr paxctl 8 . 2350.Pp 2351See 2352.Xr security 7 2353for more details. 2354.It Cd options PAX_ASLR=value 2355Enables PaX ASLR. 2356.Pp 2357The 2358.Ar value 2359is the default value for the 2360.Em global 2361knob, see 2362.Xr sysctl 3 . 2363If 0, PaX ASLR will be enabled only if explicitly set on programs 2364using 2365.Xr paxctl 8 . 2366If 1, PaX ASLR will be enabled to all programs, and exemption can 2367be done using 2368.Xr paxctl 8 . 2369.Pp 2370See 2371.Xr security 7 2372for more details. 2373.It Cd options USER_VA0_DISABLE_DEFAULT=value 2374Sets the initial value of the flag which controls whether user programs 2375can map virtual address 0. 2376The flag can be changed at runtime by 2377.Xr sysctl 3 . 2378.It Cd options KASAN 2379Enables Kernel Address Sanitizer. 2380.Em NOTE : 2381not available on all architectures. 2382.It Cd options KASLR 2383Enables Kernel ASLR. 2384This randomizes the location of the kernel image in memory. 2385.Em NOTE : 2386not available on all architectures. 2387.It Cd options SVS 2388Enables Separate Virtual Space. 2389On architectures that are designed to function with a shared address 2390space, this option explicitly isolates the kernel and user spaces. 2391.Em NOTE : 2392not available on all architectures. 2393.El 2394.Ss amiga-specific Options 2395.Bl -ohang 2396.It Cd options BB060STUPIDROM 2397When the bootloader (which passes AmigaOS ROM information) claims 2398we have a 68060 CPU without FPU, go look into the Processor 2399Configuration Register (PCR) to find out. 2400You need this with Amiga ROMs up to (at least) V40.xxx (OS3.1), 2401when you boot via the bootblocks and don't have a DraCo. 2402.It Cd options IOBZCLOCK=frequency 2403The IOBlix boards come with two different serial master clocks: older ones 2404use 24 MHz, newer ones use 22.1184 MHz. 2405The driver normally assumes the latter. 2406If your board uses 24 MHz, you can recompile your kernel with 2407options IOBZCLOCK=24000000 2408or patch the kernel variable iobzclock to the same value. 2409.It Cd options LIMITMEM=value 2410If there, limit the part of the first memory bank used by 2411.Nx 2412to value megabytes. 2413Default is unlimited. 2414.It Cd options P5PPC68KBOARD 2415Add special support for Phase5 mixed 68k+PPC boards. 2416Currently, this only affects rebooting from 2417.Nx 2418and is only needed on 68040+PPC, not on 241968060+PPC; without this, affected machines will hang after 2420.Nx 2421has shut 2422down and will only restart after a keyboard reset or a power cycle. 2423.El 2424.Ss atari-specific Options 2425.Bl -ohang 2426.It Cd options DISKLABEL_AHDI 2427Include support for AHDI (native Atari) disklabels. 2428.It Cd options DISKLABEL_NBDA 2429Include support for 2430.Nx Ns /atari 2431labels. 2432If you don't set this option, it will be set automatically. 2433.Nx Ns /atari 2434will not work without it. 2435.It Cd options FALCON_SCSI 2436Include support for the 5380-SCSI configuration as found on the Falcon. 2437.It Cd options RELOC_KERNEL 2438If set, the kernel will relocate itself to TT-RAM, if possible. 2439This will give you a slightly faster system. 2440.Em Beware 2441that on some TT030 systems, 2442the system will frequently dump with MMU-faults with this option enabled. 2443.It Cd options SERCONSOLE 2444Allow the modem1-port to act as the system-console. 2445A carrier should be active on modem1 during system boot to active 2446the console functionality. 2447.It Cd options TT_SCSI 2448Include support for the 5380-SCSI configuration as found on the TT030 2449and Hades. 2450.El 2451.Ss i386-specific Options 2452.Bl -ohang 2453.It Cd options CPURESET_DELAY=value 2454Specifies the time (in millisecond) to wait before doing a hardware reset 2455in the last phase of a reboot. 2456This gives the user a chance to see error messages from the shutdown 2457operations (like NFS unmounts, buffer cache flush, etc ...). 2458Setting this to 0 will disable the delay. 2459Default is 2 seconds. 2460.It Cd options USER_LDT 2461Include i386-specific system calls for modifying the local descriptor table, 2462used by Windows emulators. 2463.It Cd options PAE 2464Enable PAE (Physical Address Extension) mode. 2465PAE permits up to 36 bits physical addressing (64GB of physical 2466memory), and turns physical addresses to 64 bits entities in the 2467memory management subsystem. 2468Userland virtual address space remains at 32 bits (4GB). 2469PAE mode is required to enable the NX/XD (No-eXecute/eXecute Disable) 2470bit for pages, which allows marking certain ones as not being executable. 2471Any attempt to execute code from such a page will raise an exception. 2472.It Cd options REALBASEMEM=integer 2473Overrides the base memory size passed in from the boot block. 2474(Value given in kilobytes.) 2475Use this option only if the boot block reports the size incorrectly. 2476(Note that some BIOSes put the extended BIOS 2477data area at the top of base memory, and therefore report a smaller 2478base memory size to prevent programs overwriting it. 2479This is correct behavior, and you should not use the 2480.Em REALBASEMEM 2481option to access this memory). 2482.It Cd options SPECTRE_V2_GCC_MITIGATION=1 2483Enable GCC-specific Spectre variant 2 mitigations. 2484For 32-bit kernels this means these options: 2485.Bd -literal -offset indent 2486-mindirect-branch=thunk -mindirect-branch-register 2487.Ed 2488.Pp 2489For 64-bit kernels this means these options: 2490.Bd -literal -offset indent 2491-mindirect-branch=thunk-inline -mindirect-branch-register 2492.Ed 2493.It Cd options REALEXTMEM=integer 2494Overrides the extended memory size passed in from the boot block. 2495(Value given in kilobytes. 2496Extended memory does not include the first megabyte.) 2497Use this option only if the boot block reports the size incorrectly. 2498.It Cd options CYRIX_CACHE_WORKS 2499Relevant only to the Cyrix 486DLC CPU. 2500This option is used to turn on the cache in hold-flush mode. 2501It is not turned on by default because it is known to have problems in 2502certain motherboard implementations. 2503.It Cd options CYRIX_CACHE_REALLY_WORKS 2504Relevant only to the Cyrix 486DLC CPU. 2505This option is used to turn on the cache in write-back mode. 2506It is not turned on by default because it is known to have problems in 2507certain motherboard implementations. 2508In order for this option to take effect, option 2509.Em CYRIX_CACHE_WORKS 2510must also be specified. 2511.It Cd options PCIBIOS 2512Enable support for initializing the PCI bus using information from 2513the BIOS. 2514See 2515.Xr pcibios 4 2516for details. 2517.It Cd options MTRR 2518Include support for accessing MTRR registers from user-space. 2519See 2520.Xr i386_get_mtrr 2 . 2521.It Cd options BEEP_ONHALT 2522Make the system speaker emit several beeps when it is completely safe to 2523power down the computer after a 2524.Xr halt 8 2525command. 2526Requires 2527.Xr sysbeep 4 2528support. 2529.It Cd options BEEP_ONHALT_COUNT=times 2530Number of times to beep the speaker when 2531.Cd options BEEP_ONHALT 2532is enabled. 2533Defaults to 3. 2534.It Cd options BEEP_ONHALT_PITCH=hz 2535The tone frequency used when 2536.Cd options BEEP_ONHALT 2537option, in hertz. 2538Defaults to 1500. 2539.It Cd options BEEP_ONHALT_PERIOD=msecs 2540The duration of each beep when 2541.Cd options BEEP_ONHALT 2542is enabled, in milliseconds. 2543Defaults to 250. 2544.It Cd options MULTIBOOT 2545Makes the kernel Multiboot-compliant, allowing it to be booted through 2546a Multiboot-compliant boot manager such as GRUB. 2547See 2548.Xr multiboot 8 2549for more information. 2550.It Cd options SPLASHSCREEN 2551Display a splash screen during boot. 2552.El 2553.Ss isa-specific Options 2554Options specific to 2555.Xr isa 4 2556busses. 2557.Bl -ohang 2558.It Cd options PCIC_ISA_ALLOC_IOBASE=address, PCIC_ISA_ALLOC_IOSIZE=size 2559Control the section of IO bus space used for PCMCIA bus space mapping. 2560Ideally the probed defaults are satisfactory, however in practice 2561that is not always the case. 2562See 2563.Xr pcmcia 4 2564for details. 2565.It Cd options PCIC_ISA_INTR_ALLOC_MASK=mask 2566Controls the allowable interrupts that may be used for PCMCIA 2567devices. 2568This mask is a logical-or of power-of-2s of allowable interrupts: 2569.Bd -literal -offset 04n 2570.Em "IRQ Val IRQ Val IRQ Val IRQ Val" 2571 0 0x0001 4 0x0010 8 0x0100 12 0x1000 2572 1 0x0002 5 0x0020 9 0x0200 13 0x2000 2573 2 0x0004 6 0x0040 10 0x0400 14 0x4000 2574 3 0x0008 7 0x0080 11 0x0800 15 0x8000 2575.Ed 2576.It Cd options PCKBC_CNATTACH_SELFTEST 2577Perform a self test of the keyboard controller before attaching it as a 2578console. 2579This might be necessary on machines where we boot on cold iron, and 2580pckbc refuses to talk until we request a self test. 2581Currently only the netwinder port uses it. 2582.It Cd options PCKBD_CNATTACH_MAY_FAIL 2583If this option is set the PS/2 keyboard will not be used as the console 2584if it cannot be found during boot. 2585This allows other keyboards, like USB, to be the console keyboard. 2586.It Cd options PCKBD_LAYOUT=layout 2587Sets the default keyboard layout, see 2588.Xr pckbd 4 . 2589.El 2590.Ss m68k-specific Options 2591.Bl -ohang 2592.It Cd options FPU_EMULATE 2593Include support for MC68881/MC68882 emulator. 2594.It Cd options FPSP 2595Include support for 68040 floating point. 2596.It Cd options M68020,M68030,M68040,M68060 2597Include support for a specific CPU, 2598at least one (the one you are using) should be specified. 2599.It Cd options M060SP 2600Include software support for 68060. 2601This provides emulation of unimplemented 2602integer instructions as well as emulation of unimplemented floating point 2603instructions and data types and software support for floating point traps. 2604.El 2605.Ss powerpc-specific Options (OEA Only) 2606.Bl -ohang 2607.It Cd options PMAP_MEMLIMIT=value 2608Limit the amount of memory seen by the kernel to 2609.Ar value 2610bytes. 2611.It Cd options PTEGCOUNT=value 2612Specify the size of the page table as 2613.Ar value 2614PTE groups. 2615Normally, one PTEG is allocated per physical page frame. 2616.El 2617.Ss sparc-specific Options 2618.Bl -ohang 2619.It Cd options AUDIO_DEBUG 2620Enable simple event debugging of the logging of the 2621.Xr audio 4 2622device. 2623.It Cd options BLINK 2624Enable blinking of LED. 2625Blink rate is full cycle every N seconds for 2626N < then current load average. 2627See 2628.Xr getloadavg 3 . 2629.\" .It Cd options COLORFONT_CACHE 2630.\" What does this do? 2631.It Cd options COUNT_SW_LEFTOVERS 2632Count how many times the sw SCSI device has left 3, 2, 1 and 0 in the 2633sw_3_leftover, sw_2_leftover, sw_1_leftover, and sw_0_leftover 2634variables accessible from 2635.Xr ddb 4 . 2636See 2637.Xr sw 4 . 2638.It Cd options DEBUG_ALIGN 2639Adds debugging messages calls when user-requested alignment fault 2640handling happens. 2641.It Cd options DEBUG_EMUL 2642Adds debugging messages calls for emulated floating point and 2643alignment fixing operations. 2644.It Cd options EXTREME_DEBUG 2645Adds debugging functions callable from 2646.Xr ddb 4 . 2647The debug_pagetables, test_region and print_fe_map 2648functions print information about page tables for the SUN4M 2649platforms only. 2650.It Cd options EXTREME_EXTREME_DEBUG 2651Adds extra info to 2652.Em options EXTREME_DEBUG . 2653.It Cd options FPU_CONTEXT 2654Make 2655.Em options COMPAT_SVR4 2656getcontext and setcontext include floating point registers. 2657.It Cd options MAGMA_DEBUG 2658Adds debugging messages to the 2659.Xr magma 4 2660device. 2661.It Cd options RASTERCONS_FULLSCREEN 2662Use the entire screen for the console. 2663.It Cd options RASTERCONS_SMALLFONT 2664Use the Fixed font on the console, instead of the normal font. 2665.It Cd options SUN4 2666Support sun4 class machines. 2667.It Cd options SUN4C 2668Support sun4c class machines. 2669.It Cd options SUN4M 2670Support sun4m class machines. 2671.It Cd options SUN4_MMU3L 2672.\" XXX ??? 2673Enable support for sun4 3-level MMU machines. 2674.It Cd options V9 2675Enable SPARC V9 assembler in 2676.Xr ddb 4 . 2677.El 2678.Ss sparc64-specific Options 2679.Bl -ohang 2680.It Cd options AUDIO_DEBUG 2681Enable simple event debugging of the logging of the 2682.Xr audio 4 2683device. 2684.It Cd options BLINK 2685Enable blinking of LED. 2686Blink rate is full cycle every N seconds for 2687N < then current load average. 2688See 2689.Xr getloadavg 3 . 2690.El 2691.Ss x68k-specific Options 2692.Bl -ohang 2693.It Cd options EXTENDED_MEMORY 2694Include support for extended memory, e.g., TS-6BE16 and 060turbo on-board. 2695.It Cd options JUPITER 2696Include support for Jupiter-X MPU accelerator 2697.It Cd options ZSCONSOLE,ZSCN_SPEED=value 2698Use the built-in serial port as the system-console. 2699Speed is specified in bps, defaults to 9600. 2700.It Cd options ITE_KERNEL_ATTR=value 2701Set the kernel message attribute for ITE. 2702Value, an integer, is a logical or of the following values: 2703.Bl -tag -width 4n -compact -offset indent 2704.It 1 2705color inversed 2706.It 2 2707underlined 2708.It 4 2709bolded 2710.El 2711.El 2712.Ss x86-specific Options 2713.Bl -ohang 2714.It Cd options NO_PCI_MSI_MSIX 2715Disable support for MSI/MSIX in the kernel. 2716See 2717.Xr pci_msi 9 2718for details of MSI/MSIX support 2719.It Cd options NO_PREEMPTION 2720Disables 2721.Xr kpreempt 9 2722support in the kernel. 2723.El 2724.\" The following requests should be uncommented and used where appropriate. 2725.\" .Sh FILES 2726.\" .Sh EXAMPLES 2727.Sh SEE ALSO 2728.Xr config 1 , 2729.Xr gcc 1 , 2730.Xr gdb 1 , 2731.Xr ktrace 1 , 2732.Xr quota 1 , 2733.Xr vndcompress 1 , 2734.Xr gettimeofday 2 , 2735.Xr i386_get_mtrr 2 , 2736.Xr i386_iopl 2 , 2737.Xr msgctl 2 , 2738.Xr msgget 2 , 2739.Xr msgrcv 2 , 2740.Xr msgsnd 2 , 2741.Xr ntp_adjtime 2 , 2742.Xr ntp_gettime 2 , 2743.Xr reboot 2 , 2744.Xr semctl 2 , 2745.Xr semget 2 , 2746.Xr semop 2 , 2747.Xr shmat 2 , 2748.Xr shmctl 2 , 2749.Xr shmdt 2 , 2750.Xr shmget 2 , 2751.Xr sysctl 3 , 2752.Xr apm 4 , 2753.Xr ddb 4 , 2754.Xr inet 4 , 2755.Xr md 4 , 2756.Xr pcibios 4 , 2757.Xr pcmcia 4 , 2758.Xr ppp 4 , 2759.Xr userconf 4 , 2760.Xr vnd 4 , 2761.Xr wscons 4 , 2762.Xr config 5 , 2763.Xr edquota 8 , 2764.Xr init 8 , 2765.Xr mdsetimage 8 , 2766.Xr mount_cd9660 8 , 2767.Xr mount_fdesc 8 , 2768.Xr mount_kernfs 8 , 2769.Xr mount_lfs 8 , 2770.Xr mount_mfs 8 , 2771.Xr mount_msdos 8 , 2772.Xr mount_nfs 8 , 2773.Xr mount_ntfs 8 , 2774.Xr mount_null 8 , 2775.Xr mount_portal 8 , 2776.Xr mount_procfs 8 , 2777.Xr mount_udf 8 , 2778.Xr mount_umap 8 , 2779.Xr mount_union 8 , 2780.Xr mrouted 8 , 2781.Xr newfs_lfs 8 , 2782.Xr ntpd 8 , 2783.Xr quotaon 8 , 2784.Xr rpc.rquotad 8 , 2785.Xr sysctl 8 , 2786.Xr cnmagic 9 , 2787.Xr in_getifa 9 , 2788.Xr kernhist 9 2789.Sh HISTORY 2790The 2791.Nm 2792man page first appeared in 2793.Nx 1.3 . 2794