OPTIONS(4)
๐ธ OPTIONS(4) โ the kernel config options glow-up ๐ธ
ok so this is from the Kernel Interfaces Manual, and it's literally the cheat sheet for all the miscellaneous kernel configuration options you can drop into a kernel config file. bestie, if you wanna know how to actually configure and build kernels, go read config(1) and config(5) โ this page is about the options themselves. ๐
โจ NAME โจ
options โ Miscellaneous kernel configuration options ๐
โจ SYNOPSIS โจ
cinclude ...
config ...
[no] file-system ...
ident ...
include ...
[no] makeoptions ...
maxusers ...
[no] options ...
[no] pseudo-device ...
โจ DESCRIPTION โจ
So this manual page describes a bunch of miscellaneous kernel configuration options that you can specify in a kernel config file. See config(1) and config(5) for the deets on how to configure and build kernels, ok? ๐ซถ
The no form removes a previously specified option. that's it, that's the whole vibe โ it's the undo button, periodt.
๐ซ Keywords ๐ซ
These are the keywords that are recognized in a kernel configuration file โ your whole vocabulary, basically:
cinclude "filename"โ conditionally includes another kernel configuration file whose name is filename, which may be double-quoted and may be an explicit path or relative to the kernel source directory. and if it fails to open the named file? it's ignored. no drama. ๐config exec_name root on rootdev [type fstype] [dumps on dumpdev]โ defines a configuration whose kernel executable is named exec_name, normallynetbsd(yes, with the curly quotes energy: โnetbsdโ), with its root file system of type fstype on the device rootdev, and optionally specifying the location of kernel core dumps on the device dumpdev. dev or dumpdev and fstype may be specified as?, which is a wild card โ very "whatever, figure it out" of them โจ. the root fstype and dumpdev are optional and assumed to be wild carded if they're not specified.device_instance at attachment [locators value [...]] [flags value]โ define an instance of the device driver device_instance that attaches to the bus or device named attachment. an attachment may require extra info on where the device can be found, such as an address, channel, function, offset, and/or slot, referred to as locators, whose value often may be a wild card,?. some device drivers have one or more flags that can be adjusted to affect the way they operate. lowkey very customizable, we love to see it ๐file-system fs_name [, fs_name [...]]โ include support for the file-system fs_name. multiple? yes bestie, comma-separate them.ident "string"โ sets the kernel identification string to string.include "filename"โ functions the same ascinclude, except failure to open filename produces a fatal error. so like, same but with consequences ๐makeoptions name=valueโ defines amake(1)macro name with the value value in the kernel Makefile.maxusers integerโ set themaxusersvariable in the kernel.no keyword name [arguments [...]]โ for theconfig(1)keywordsfile-system,makeoptions,options, andpseudo-device,noremoves the file-system, makeoption, options, or pseudo-device, name. this is useful when a kernel configuration file includes another one which has undesired options. ikyk what a lifesaver this is ๐ญ
for example, a local configuration file that wanted the kitchen sink, but not COMPAT_09 or bridging, might be:
include "arch/i386/conf/GENERIC"
no options COMPAT_09
no pseudo-device bridge
options option_name [, option_name=value [...]]โ specifies (or sets) the option, or comma-separated list of options, option_name. some options expect to be assigned a value, which may be an integer, a double-quoted word, a bare word, or an empty string (""). note that those are eventually handled by the C compiler, so the rules of that language apply. not me reminding you that C doesn't care about your feelings ๐ง
Note: Options that are not defined by device definition files are passed to the compile process as -D flags to the C compiler.
pseudo-device name [N]โ includes support for the pseudo-device name. some pseudo-devices can have multiple or N instances. iconic. ๐
๐ Compatibility Options ๐
heads up bestie: compatibility options for older NetBSD releases include support for newer releases as well. this means that typically only one of these is necessary, with the COMPAT_09 option enabling all NetBSD compatibility. this does not include the COMPAT_43 or COMPAT_44 options โ those two are doing their own thing, main character energy fr.
options COMPAT_09โ enable binary compatibility with NetBSD 0.9. this enables support for 16-bit user, group, and process IDs (following revisions support 32-bit identifiers). it also allows the use of the deprecatedgetdomainname(3),setdomainname(3), anduname(3)syscalls. this option also allows using numeric file system identifiers rather than strings. post NetBSD 0.9 versions use string identifiers. so ancient, so historic ๐๏ธoptions COMPAT_10โ enable binary compatibility with NetBSD 1.0. this option allows the use of the file system name of โufsโ as an alias for โffsโ. the name โffsโ should be used post 1.0 in/etc/fstaband other files. it also adds old syscalls for the AT&T System V UNIX shared memory interface. this was changed post 1.0 to work on 64-bit architectures. this option also enables โsgttyโ compatibility, without which programs using the old interface produce an โinappropriate ioctlโ error, and/dev/ioonly works when this option is set in the kernel, seeio(4)on ports that support it. ๐options COMPAT_11โ enable binary compatibility with NetBSD 1.1. this allows binaries running on the i386 port to gain direct access to the io ports by opening/dev/ioread/write. this functionality was replaced byi386_iopl(2)post 1.1. on the Atari port, the location of the disk label was moved after 1.1. when theCOMPAT_11option is set, the kernel will read (pre) 1.1 style disk labels as a last resort. when a disk label is re-written, the old style label will be replaced with a post 1.1 style label. this also enables theEXEC_ELF_NOTELESSoption.options COMPAT_12โ enable binary compatibility with NetBSD 1.2. this allows the use of old syscalls forreboot()andswapon(). the syscall numbers were changed post 1.2 to add functionality to thereboot(2)syscall, and the newswapctl(2)interface was introduced. this also enables theEXEC_ELF_NOTELESSoption.options COMPAT_13โ enable binary compatibility with NetBSD 1.3. this allows the use of old syscalls forsigaltstack(), and also enables the oldswapctl(2)commandSWAP_STATS(now calledSWAP_OSTATS), which does not include these_pathmember ofstruct swapent. ๐ฆoptions COMPAT_14โ enable binary compatibility with NetBSD 1.4. this allows some oldioctl(2)onwscons(4)to be performed, and allows theNFSSVC_BIODmode of thenfssvc(2)system call to be used for compatibility with the deprecatednfsiodprogram. deprecated, bestie! deprecated! ๐options COMPAT_15โ enable binary compatibility with NetBSD 1.5. since there were no API changes from NetBSD 1.5 and NetBSD 1.6, this option does nothing. literally a decorative option. we stan a do-nothing queen ๐ธoptions COMPAT_16โ enable binary compatibility with NetBSD 1.6. this allows the use of old signal trampoline code which has been deprecated with the addition ofsiginfo(2).options COMPAT_20โ enable binary compatibility with NetBSD 2.0. this allows the use of old syscalls forstatfs(),fstatfs(),getfsstat()andfhstatfs(), which have been deprecated with the addition of thestatvfs(2),fstatvfs(2),getvfsstat(2)andfhstatvfs(2)system calls.options COMPAT_30โ enable binary compatibility with NetBSD 3.0. seecompat_30(8)for details about the changes made after the NetBSD 3.0 release. ๐options COMPAT_40โ enable binary compatibility with NetBSD 4.0. this allows the use of oldptrace(2)calls for the SH3 platform. it also enables the oldmount(2)system call that did not include the data length parameter. thepower_event_tstructure'spev_switchis filled in.options COMPAT_43โ enables compatibility with 4.3BSD. this adds an old syscall forlseek(2). it also adds the ioctls forTIOCGETPandTIOCSETP. the return values forgetpid(2),getgid(2), andgetuid(2)syscalls are modified as well, to return the parent's PID and UID as well as the current process's. it also enables the deprecatedNTTYDISCterminal line discipline. it also provides backwards compatibility with โoldโSIOC[GS]IF{ADDR,DSTADDR,BRDADDR,NETMASK}interface ioctls, including binary compatibility with code written before the introduction of thesa_lenfield in sockaddrs. it also enables support for some older pre 4.4BSD socket calls. this one ate and left no crumbs ๐ฅoptions COMPAT_50โ enable binary compatibility with NetBSD 5.0. this enables support for the oldtime_tanddev_ttypes as 32 bit, and all the associated kernel interface changes. it also enables oldgpio(4)andrnd(4)interfaces.options COMPAT_60โ enable binary compatibility with NetBSD 6.0. this provides oldccd(4)interfaces, enables support for oldcpuctl(8)microcode interfaces, and support for the oldptmgetstructure.options COMPAT_70โ enable binary compatibility with NetBSD 7.0. this provides support for oldroute(4)interfaces.options COMPAT_80โ enable binary compatibility with NetBSD 8.0. short and sweet โจoptions COMPAT_90โ enable binary compatibility with NetBSD 9.0. also short and sweet โจoptions COMPAT_BSDPTYโ this option is currently on by default and enables the pty multiplexerptm(4)andptmx(4)to find and use ptys named/dev/ptyXX(master) and/dev/ttyXX(slave). eventually this option will become optional asptyfsbased pseudo-ttys become the default, seemount_ptyfs(8). so like, enjoy it while it's default ๐ซถoptions COMPAT_LINUXโ on those architectures that support it, this enables binary compatibility with Linux ELF anda.out(5)applications built for the same architecture. this currently includes thealpha,arm,i386,m68k,mips,powerpcandx86_64ports. multi-arch slay ๐options COMPAT_LINUX32โ on those 64 bit architectures that support it, this enables binary compatibility with 32 bit Linux binaries. for now this is limited to runningi386ELF Linux binaries onamd64. ngl, niche but valid.options COMPAT_SUNOSโ on those architectures that support it, this enables binary compatibility with SunOS 4.1 applications built for the same architecture. this currently includes thesparc,sparc64and most or allm68kports. note that thesparc64requires theCOMPAT_NETBSD32option for 64-bit kernels, in addition to this option. two options, one vibe ๐options COMPAT_ULTRIXโ on those architectures that support it, this enables binary compatibility with ULTRIX applications built for the same architecture. this currently is limited to thepmax. the functionality of this option is unknown. literally nobody knows what it does and I think that's iconic ๐ญoptions COMPAT_FREEBSDโ on those architectures that support it, this enables binary compatibility with FreeBSD applications built for the same architecture. at the moment this is limited to thei386port.options COMPAT_NOMIDโ enable compatibility witha.out(5)executables that lack a machine ID. this includes NetBSD 0.8'sZMAGICformat, and 386BSD and BSDI'sQMAGIC,NMAGIC, andOMAGICa.out(5)formats. the whole magic alphabet, bestie ๐ฎoptions COMPAT_NETBSD32โ on those architectures that support it, this enables binary compatibility with 32-bit applications built for the same architecture. this is currently limited to theamd64andsparc64ports, and only applicable for 64-bit kernels. 64-bit kernel, 32-bit app, no cap ๐ง
ok that's the first chunk โ more parts coming, don't go anywhere bestie ๐
options COMPAT_AOUT_M68Kโ okay so this one is for m68k archs that already made the glow-up to ELF ๐ฆ It turns on binary compat so your shiny NetBSD/m68k ELF kernel can still run old NetBSD/m68ka.out(5)executables. Why does this even need to exist? Because the m68k ABI alignment situation between a.out and ELF is a whole mess that causes structure padding differences (the โจdramaโจ). Heads up tho: right now only some system calls that usestruct statget adjusted, and some binaries that usesysctl(3)to grab network details just won't work properly ๐ญ Not everything slays yet.- *
options EMUL_NATIVEROOT=string* โ you know how emulated binaries look up files in an emulation root (like/emul/linux) before looking in the real root? This makes native binaries do the same thing with an "emulation" directory too ๐ And it's actually so useful for testing an amd64 kernel on top of an i386 system before you fully migrate โ you unpack the amd64 distribution in, say,/emul/netbsd64, set that asEMUL_NATIVEROOT, and boom: native amd64 binaries run while your root file system is still full of i386 binaries ๐ > โ ๏ธ fr fr beware of/devincompatibilities between i386 and amd64 if you do this. options EXEC_ELF_NOTELESSโ runs unidentified ELF binaries as NetBSD binaries. Might be needed for very old NetBSD ELF binaries on some archs, because those vintage babies didn't contain an appropriate.note.netbsd.identsection, so the kernel literally can't identify them as NetBSD binaries otherwise ๐ > โ ๏ธ Beware โ with this option on, the kernel would run any unknown ELF binaries as if they were NetBSD binaries. It's giving "no vibes check, no problem," which is lowkey terrifying ngl.
๐ Debugging Options ๐
options DDBโ compiles in a kernel debugger for diagnosing kernel problems. Seeddb(4)for the deets. > NOTE: not available on all architectures ๐- *
options DDB_FROMCONSOLE=integer* โ if you set this to non-zero, DDB can be entered by sending a break on a serial console or by a special key sequence on a graphics console. A value of"0"ignores console breaks or key sequences. If not explicitly specified, the default value is"1". Note that this sets the value of theddb.fromconsolesysctl(3)variable, which may be changed at run time โ seesysctl(8)for details โจ - *
options DDB_HISTORY_SIZE=integer* โ if this is non-zero, enable history editing in the kernel debugger and set the size of the history to this value. Bestie gets her up-arrow history, it's what she deserves ๐ซถ options DDB_ONPANICโ the default if not specified is"1"โ just enter into DDB. If set to"0"the kernel will attempt to print out a stack trace and reboot the system. If set to"-1"then neither a stack trace is printed or DDB entered โ it is as if DDB were not compiled into the kernel ๐ Note that this sets the value of theddb.onpanicsysctl(3)variable which may be changed at run time โ seesysctl(8)for details.- *
options DDB_COMMANDONENTER=string* โ this option specify commands which will be executed on each entry to DDB. It sets the default value of theddb.commandonentersysctl(3)variable, which may be changed at run time ๐ฅ - *
options DDB_BREAK_CHAR=integer* โ this option overrides using break to enter the kernel debugger on the serial console. The value given is the ASCII value to be used instead. This is currently only supported by thecomdriver ๐ - *
options CNMAGIC=string* โ this option overrides thecnmagic(9)string used to enter the kernel debugger ๐ options DDB_VERBOSE_HELPโ this option adds more verbose descriptions to thehelpcommand. More words = more help, we love an explainer queen ๐- *
options DDB_PANICSTACKFRAMES=integer* โ number of stack frames to display on panic. Useful to avoid scrolling away the interesting frames on a glass tty ๐ Default value is65535(all frames), useful value around10. options KGDBโ compiles in a remote kernel debugger stub for diagnosing kernel problems using the โremote targetโ feature of gdb. Seegdb(1)for details. > NOTE: not available on all architectures ๐ญoptions KGDB_DEVโ device number (as adev_t) of kgdb device.options KGDB_DEVADDRโ memory address of kgdb device.options KGDB_DEVMODEโ permissions of kgdb device.options KGDB_DEVNAMEโ device name of kgdb device.options KGDB_DEVRATEโ baud rate of kgdb device. The whole KGDB squad is here and they're all serving their one specific purpose ๐งmakeoptions DEBUG="-g"โ the-gflag causesnetbsd.gdbto be built in addition tonetbsd.netbsd.gdbis useful for debugging kernel crash dumps with gdb. Seegdb(1)for details โญoptions DEBUGโ turns on miscellaneous kernel debugging. Since options are turned into preprocessor defines (see above),options DEBUGis equivalent to doing a#define DEBUGthroughout the kernel. Much of the kernel has#ifdef DEBUGconditionalized debugging code. Note that many parts of the kernel (typically device drivers) include their own#ifdef XXX_DEBUGconditionals instead. This option also turns on certain other options, which may decrease system performance ๐ฌ > Systems with this option are not suitable for regular use, and are intended only for debugging or looking for bugs. It's a lab coat, not an everyday fit.options DIAGNOSTICโ adds code to the kernel that does internal consistency checks. This code will cause the kernel to panic if corruption of internal data structures is detected ๐ Historically, the performance degradation is sufficiently small that it is reasonable for systems withoptions DIAGNOSTICto be in production use, with the real consideration not being performance but instead a preference for more panics versus continued operation with undetected problems. Iconic tradeoff honestly.options LOCKDEBUGโ adds code to the kernel to detect incorrect use of locking primitives (mutex,rwlock). This code will cause the kernel to check for dead lock conditions. It will also check for memory being freed to not contain initialised lock primitives. Functions for use inddb(4)to check lock chains etc. are also enabled. > These checks are very expensive and can decrease performance on multi-processor machines by a factor of three ๐ฅ๐ญ Worth it when you're hunting bugs tho.options KDTRACE_HOOKSโ adds hooks for the DTrace tracing facility, which allows users to analyze many aspects of system and application behavior. Seedtrace(1)for details ๐options KSTACK_CHECK_MAGICโ check kernel stack usage and panic if stack overflow is detected. This check is performance sensitive because it scans stack on each context switch ๐ธoptions KTRACEโ add hooks for the system call tracing facility, which allows users to watch the system call invocation behavior of processes. Seektrace(1)for details. Literally watching every move, main character surveillance energy ๐- *
options MSGBUFSIZE=integer* โ this option sets the size of the kernel message buffer in bytes. This buffer holds the kernel output ofprintf()when not (yet) read bysyslogd(8). This is particularly useful when the system has crashed and you wish to lookup the kernel output from just before the crash ๐ญ Also, since the autoconfig output becomes more and more verbose, it sometimes happens that the message buffer overflows beforesyslogd(8)was able to read it. Note that not all systems are capable of obtaining a variable sized message buffer. There are also some systems on which memory contents are not preserved across reboots ๐ซ options KERNHISTโ enables the kernel history logs, which create in-memory traces of various kernel activities. These logs can be displayed by usingshow kernhistfrom DDB. See the kernel source filesys/kern/kern_history.cand thekernhist(9)manual for details โจoptions KERNHIST_PRINTโ prints the kernel history logs on the system console as entries are added. Note that the output is extremely voluminous, so this option is really only useful for debugging the very earliest parts of kernel initialization ๐options UVMHISTโ likeKERNHIST, it enables the UVM history logs. These logs can be displayed by usingshow kernhistfrom DDB. See the kernel source filesys/uvm/uvm_stat.cfor details ๐options UVMHIST_PRINTโ likeUVMHIST, it prints the UVM history logs on the system console as entries are added. Note that the output is extremely voluminous, so this option is really only useful for debugging the very earliest parts of kernel initialization ๐ญoptions UVMHIST_MAPHIST_SIZEโ set the size of the โmaphistโ kernel history. The default is100. This option depends upon theUVMHISToption ๐options UVMHIST_PDHIST_SIZEโ set the size of the โpdhistโ kernel history. The default is100. This option depends upon theUVMHISToption.options BIOHISTโ likeKERNHIST, it enables the BIO history logs. These logs can be displayed by usingshow kernhistfrom DDB, and can help in debugging problems with Buffered I/O operations. See the kernel source filesys/kern/vfs_vio.cfor details ๐options BIOHIST_PRINTโ likeBIOHIST, it prints the BIO history logs on the system console as entries are added. Note that the output is extremely voluminous, so this option is really only useful for debugging the very earliest parts of kernel initialization ๐options BIOHIST_SIZEโ set the size of the โbiohistโ kernel history. The default is500. This option depends upon theBIOHISToption.
๐ File Systems ๐
file-system FFSโ includes code implementing the Berkeley Fast File System (FFS). Most machines need this if they are not running diskless ๐file-system EXT2FSโ includes code implementing the Second Extended File System (ext2), revision 0 and revision 1 with thefiletype,sparse_superandlarge_fileoptions. This is the most commonly used file system on the Linux operating system, and is provided here for compatibility ๐ซถ Some of the specific features of ext2 like the "behavior on errors" are not implemented. Seemount_ext2fs(8)for details.file-system LFSโ [EXPERIMENTAL] Include the Log-structured File System (LFS). Seemount_lfs(8)andnewfs_lfs(8)for details โจfile-system MFSโ include the Memory File System (MFS). This file system stores files in swappable memory, and produces notable performance improvements when it is used as the file store for/tmpand similar file systems. Seemount_mfs(8)for details ๐file-system NFSโ include the client side of the Network File System (NFS) remote file sharing protocol. Although the bulk of the code implementing NFS is kernel based, several user level daemons are needed for it to work. Seemount_nfs(8)for details ๐ธfile-system CD9660โ includes code for the ISO 9660 + Rock Ridge file system, which is the standard file system on many CD-ROM discs. Useful primarily if you have a CD-ROM drive. Seemount_cd9660(8)for details ๐ฟfile-system MSDOSFSโ includes the MS-DOS FAT file system, which is reportedly still used by unfortunate people who have not heard about NetBSD ๐ญ Also implements the Windows 95 extensions to the same, which permit the use of longer, mixed case file names. Seemount_msdos(8)andfsck_msdos(8)for details ๐file-system NTFSโ [EXPERIMENTAL] Includes code for the Microsoft Windows NT file system. Seemount_ntfs(8)for details ๐ฆfile-system FDESCโ pulls in the code for a file system, conventionally mounted on/dev/fd, that lets you reach into the per-process file descriptor space through special files living in that file system. Peepmount_fdesc(8)for the deets. Heads up though: this whole thing is redundant and lowkey unnecessary on most NetBSD systems, because thefd(4)pseudo-device driver already does the exact same job. On most NetBSD systems, instances offd(4)aremknoded under/dev/fd/and on/dev/stdin,/dev/stdout, and/dev/stderr. So likeโฆ it's giving "we have that at home" ๐file-system KERNFSโ includes the code that lets you mount a special file system (normally mounted on/kern) where you'll find files representing all sorts of kernel variables and parameters.mount_kernfs(8)has the lore โจfile-system NULLFSโ the loopback file system, bestie! This one lets portions of the file hierarchy be re-mounted in other places. Fr fr though, the code really exists to be an example of a stackable file system layer โ it's the demo model, the blueprint, the main character of stackable layers.mount_null(8)for details ๐ฆfile-system OVERLAYโ code for a file system filter. This lets the overlay file system intercept all access to an underlying file system. It's intended to serve as an example of a stacking file system that has a need to interpose itself between an underlying file system and all other access. Not me, just standing here, between you and everything.mount_overlay(8)for the details ๐file-system PROCFSโ a special file system (conventionally mounted on/proc) where the process space becomes visible in the file system. Among other things, the memory spaces of processes running on the system are visible as files, and you can send signals to processes by writing toctlfiles in the procfs namespace. Obsessed. Seemount_procfs(8)๐ธfile-system UDFโ code for the UDF file system, commonly found on CD and DVD media but also on USB sticks and harddiscs for interchange and backup. It supports read and write access for all formats on discs and on rewritable and recordable CD/DVD/BD media. Fair warning: it has a somewhat limited write support for UDF 2.50 as it can't expand the metadata partion. Not a drill, that's a real limitation ๐ Seemount_udf(8)andfsck_udf(8)for details.file-system UMAPFSโ a loopback file system where user and group IDs may be remapped โ which is genuinely useful when you're mounting alien file systems with different UIDs and GIDs than the local system.mount_umap(8)has the details ๐ซถfile-system UNIONโ [EXPERIMENTAL] ๐งช includes the code for the union file system, which permits directories to be mounted on top of each other in such a way that both file systems remain visible โ this permits tricks like allowing writing (and the deleting of files) on a read-only file system like a CD-ROM by mounting a local writable file system on top of the read-only one. Iconic behavior honestly. Seemount_union(8)for details ๐file-system CODAโ [EXPERIMENTAL] ๐งช includes the code for the Coda file system. Coda is a distributed file system like NFS and AFS. It's freely available, like NFS, but it functions much like AFS in being a โstatefulโ file system. Both Coda and AFS cache files on your local machine to improve performance. Then Coda goes a step further than AFS by letting you access the cached files when there is no available network, viz. disconnected laptops and network outages. In Coda, both the client and server are outside the kernel which makes them easier to experiment with. Coda is available for several UNIX and non-UNIX platforms. Seehttp://www.coda.cs.cmu.edufor more details.
NOTE: you also need to enable the pseudo-device, vcoda, for the Coda file system to work. Don't forget, or you'll be sad ๐ญ
file-system PTYFSโ a special file system (normally mounted on/dev/pts) where pseudo-terminal slave devices become visible in the file system.mount_ptyfs(8)for the deets ๐file-system TMPFSโ the efficient memory file system, normally used over/tmp. Literally so fast. Seemount_tmpfs(8)โญfile-system PUFFSโ kernel support for the pass-to-userspace framework file system. It can be used to implement file system functionality in userspace.puffs(3)for more details. This enables for examplesshfs:mount_psshfs(8). Userspace file systems?? We love to see it ๐
๐ File System Options ๐
options DISKLABEL_EIโ enables โEndian-Independentโdisklabel(5)support. This allows a system to recognize a disklabel written in the other byte order. As for writing: when a label already exists, its byte order is preserved. Otherwise, a new label is written in the native byte order. To specify the byte order explicitly, the-Foption ofdisklabel(8)should be used with the-Boption in order to avoid usingioctl(2), which results in the default behavior explained above. At the moment this option is restricted to the following ports:amd64,bebox,emips,epoc32,evbarm,i386,ibmnws,landisk,mvmeppc,prep,rs6000,sandpoint,xen, andzaurus; also to machines of theevbmipsandevbppcports that support Master Boot Record (MBR). So check your port before you get your hopes up ๐ฆoptions MAGICLINKSโ enables the expansion of special strings (beginning with โ@โ) when traversing symbolic links. Seesymlink(7)for a list of supported strings. Note that this option only controls the enabling of this feature by the kernel at boot-up โ the feature can still be manipulated with thesysctl(8)command regardless of the setting of this option. So it's not the final boss, iykyk โจoptions NFSSERVERโ includes the server side of the NFS (Network File System) remote file sharing protocol. Although the bulk of the code implementing NFS is kernel based, several user level daemons are needed for it to work. Seemountd(8)andnfsd(8)for details ๐ซถoptions NVNODE=integerโ this option sets the size of the cache used by the name-to-inode translation routines, (a.k.a. thenamei()cache, though called by many other names in the kernel source). By default, this cache has(NPROC + NTEXT + 100)entries (NPROCset as20 + 16 * MAXUSERSandNTEXTas80 + NPROC / 8). A reasonable way to derive a value ofNVNODE, should you notice a large number ofnameicache misses with a tool such assystat(1), is to examine your system's current computed value withsysctl(8), (which calls this parameter"kern.maxvnodes") and to increase this value until either thenameicache hit rate improves or it is determined that your system does not benefit substantially from an increase in the size of thenameicache. Basically: measure first, then vibe ๐options NAMECACHE_ENTER_REVERSEโ causes thenameicache to always enter a reverse mapping (vnode -> name) as well as a normal one. Normally, this is already done for directory vnodes, to speed up thegetcwdoperation. This option will cause longer hash chains in the reverse cache, and thus slow downgetcwdsomewhat. However, it does makevnode -> pathtranslations possible in some cases. For now, only useful if strict/proc/#/mapsemulation for Linux binaries is required. Trade-offs, bestie, trade-offs ๐
๐ธ Options for FFS/UFS File Systems ๐ธ
options APPLE_UFSโ enable support for UFS file systems created on Mac OS X ๐ (yes, that Mac OS X)options FFS_EIโ enable โEndian-Independentโ FFS support. This allows a system to mount an FFS file system created for another architecture, at a small performance cost for all FFS file systems. See alsonewfs(8),fsck_ffs(8),dumpfs(8)for file system byte order status and manipulation. Small tax, big convenience โจoptions FFS_NO_SNAPSHOTโ disable support for the creation of file system internal snapshot of FFS file systems. Maybe useful for install media kernels, small memory systems and embedded systems which don't require the snapshot support. It's giving "we simply don't need that here" ๐options QUOTAโ enables kernel support for traditional quotas in FFS. Traditional quotas store the quota information in external files and requirequotacheck(8)andquotaon(8)at boot time. Traditional quotas are limited to 32-bit sizes and are at this point considered a legacy feature. Legacy! You've been warned ๐options QUOTA2โ enables kernel support for in-volume quotas in FFS. The quota information is file system metadata maintained byfsck(8)and/or WAPBL journaling. MFS volumes can also use QUOTA2 quotas; seemount_mfs(8)for more information. The upgrade era, we love her ๐options UFS_DIRHASHโ increase lookup performance by maintaining in-core hash tables for large directories. Faster lookups, no cap โกoptions UFS_EXTATTRโ enable extended attribute support for UFS1 file systems ๐options WAPBLโ enable โWrite Ahead Physical Block Logging file system journalingโ. This provides rapid file system consistency checking after a system outage. It also provides better general use performance over regular FFS. See alsowapbl(4). Honestly? Iconic. Recovery queen behavior ๐ฅ
๐ฆ Options for the LFS File System ๐ฆ
options LFS_EIโ enable โEndian-Independentโ LFS support. This allows (at a small performance cost) mounting an LFS file system created for another architecture. Same deal as FFS, different letters ๐options LFS_DIRHASHโ increase lookup performance by maintaining in-core hash tables for large directories. Big directory energy, handled ๐
๐ Options for the NFS File System ๐
options NFS_BOOT_BOOTPโ enable use of the BOOTP protocol (RFCs 951 and 1048) to get configuration information if NFS is used to mount the root file system. Seediskless(8)for details ๐ซถoptions NFS_BOOT_BOOTSTATICโ enable use of static values defined asโNFS_BOOTSTATIC_MYIPโ,โNFS_BOOTSTATIC_GWIPโ,โNFS_BOOTSTATIC_SERVADDRโ, andโNFS_BOOTSTATIC_SERVERโin kernel options to get configuration information if NFS is used to mount the root file system. Set it yourself, no protocol needed ๐options NFS_BOOT_DHCPโ same asโNFS_BOOT_BOOTPโ, but use the DHCP extensions to the BOOTP protocol (RFC 1541). A glow-up of the classic โจoptions NFS_BOOT_BOOTP_REQFILEโ specifies the string sent in thebp_filefield of the BOOTP/DHCP request packet. Very specific, very deliberate ๐ฏoptions NFS_BOOT_BOOTPARAMโ enable use of the BOOTPARAM protocol, consisting of RARP and BOOTPARAM RPC, to get configuration information if NFS is used to mount the root file system. Seediskless(8)for details ๐ธoptions NFS_BOOT_RWSIZE=valueโ set the initial NFS read and write sizes for diskless-boot requests. The normal default is8Kbytes. This option provides a way to lower the value (e.g., to1024bytes) as a workaround for buggy network interface cards or boot PROMs. Once booted, the read and write request sizes can be increased by remounting the file system. Seemount_nfs(8)for details. Workaround era ๐ญoptions NFS_V2_ONLYโ reduce the size of the NFS client code by omitting code that's only required for NFSv3 and NQNFS support, leaving only that code required to use NFSv2 servers. Smaller kernel, fewer features, that's the deal ๐options NFS_BOOT_UDPโ use NFS over UDP instead of the default TCP, for mounting root. TCP is the default, don't forget โญ
โญ Buffer queue strategy options โญ
The following options enable alternative buffer queue strategies. (Yes, that's really it โ the list is coming, hold on ๐)
options BUFQ_READPRIOโ bestie, this one flips the whole disk I/O queue strategy. In the default setup, outstanding disk requests get sorted by sector number and yeeted to the disk, and nobody cares whether it's a read or a write. This option though? It gives reads priority over writes. So requests might go out out of sector order, which means more seeks and lower overall throughput โ but under heavy disk I/O load, interactive responsiveness can genuinely improve, because processes blocking on disk reads get serviced sooner (file writes usually don't make apps block, iykyk). The actual performance effect varies so much depending on the hardware, drive firmware, file system configuration, workload, and whatever trade-off you're going for. Systems using drive write-cache (most modern IDE disks, by default) are unlikely to benefit and may well suffer โ those disks acknowledge writes super fast and optimize them internally based on physical layout. Giving those disks as many requests to work with as possible (the standard strategy) will typically give the best results, especially if the drive has a big cache; the drive will silently complete writes from cache while it seeks for reads. Disks that support a large number of concurrent tagged requests (SCSI disks and many hardware RAID controllers) expose this internal scheduling with tagged responses, and don't block for reads โ those disks might not see a noticeable difference either way. BUT: if IDE disks are run with write-cache disabled for safety, writes aren't acknowledged until actually completed, and only one request can be outstanding; a large number of small writes in one locality can keep the disk busy, starving reads elsewhere on the disk. Those systems are likely to see the most benefit from this option. Finally, the performance interaction of this option with ffs soft dependencies can be subtle, since that mechanism can drastically alter the workload for file system metadata writes. ๐options BUFQ_PRIOCSCANโ enables another buffer queue strategy for disk I/O: per-priority cyclical scan. Slay.options NEW_BUFQ_STRATEGYโ literally just a synonym ofBUFQ_READPRIO. Same vibe, different name. โจ
๐ Miscellaneous Options ๐
options CPU_UCODEโ supports cpu microcode loading viacpuctl(8).options MEMORY_DISK_DYNAMICโ makes themd(4)RAM disk size dynamically sized. Heads up though: it is incompatible withmdsetimage(8). ๐options MEMORY_DISK_HOOKSโ lets some machine dependent functions get called when themd(4)RAM disk driver is configured. Which can result in automatically loading a RAM disk from floppy on open (among other things). Cute, right?options MEMORY_DISK_IS_ROOTโ forces themd(4)RAM disk to be the root device. This can only be overridden when the kernel is booted in the 'ask-for-root' mode.options MEMORY_DISK_ROOT_SIZE=integerโ allocates the given number of 512 byte blocks as memory for themd(4)RAM disk, to be populated withmdsetimage(8).options MEMORY_DISK_SERVER=0โ do not include the interface to a userland memory disk server process. Per default, this option is set to1, including the support code. Useful for install media kernels. ๐งoptions MEMORY_DISK_RBFLAGS=valueโ sets thereboot(2)flags used when booting with a memory disk as root file system. Possible values includeRB_AUTOBOOT(boot in the usual fashion โ that's the default value) andRB_SINGLE(boot in single-user mode).options MODULARโ enables the framework for kernel modules (seemodule(7)).options MODULAR_DEFAULT_AUTOLOADโ enables autoloading of kernel modules by default. This sets the default value of thekern.module.autoloadsysctl(3)variable, which may be changed at run time.options MODULAR_DEFAULT_VERBOSEโ enables verbose debug messages of kernel modules by default. This sets the default value of thekern.module.verbosesysctl(3)variable, which may be changed at run time.options VND_COMPRESSIONโ enables thevnd(4)driver to also handle compressed images. Seevndcompress(1),vnd(4)andvnconfig(8)for more info. ๐ซถoptions SELFRELOCโ makes the kernel able to self relocate at bootstrap, so it can run whatever its load address is. Intended to be used with therelocbootstrap command documented inx86/boot(8), to workaround UEFI bugs โ and it's only available on amd64.options SPLDEBUGโ helps the kernel programmer find bugs related to the interrupt priority level. Whenspllower()orsplraise()changes the current CPU's interrupt priority level to or fromIPL_HIGH, it records a backtrace. Readi386/return_address(9)for caveats about collecting backtraces. This feature is experimental, and it's only available on i386. Seesys/kern/subr_spldebug.c.options TFTPROOTโ downloads the root memory disk through TFTP at root mount time. This enables the use of a root RAM disk without requiring it to be embedded in the kernel usingmdsetimage(8). The RAM disk name is obtained using DHCP'sfilenameparameter. This option requiresMEMORY_DISK_HOOKSandMEMORY_DISK_DYNAMIC, and it is incompatible withMEMORY_DISK_ROOT_SIZE. ๐ญoptions HEARTBEATโ turns on heartbeat checks to panic if any CPU in the system or the timecounter appears stuck.
Each CPU will periodically check in hard interrupt context that the timecounter has advanced and soft interrupts have run on the current CPU, and each CPU will also be periodically checked for progress by another CPU.
If a CPU detects no progress has been made after HEARTBEAT_MAX_PERIOD seconds, NetBSD will panic, giving the opportunity to enter ddb or get a crash dump even if the system has become totally unresponsive to keyboard input. ๐ฅ
This is different from a hardware watchdog timer (wdogctl(8)):
options HEARTBEATis purely a software mechanism, so if hard interrupts are stuck on all CPUs, thenoptions HEARTBEATcannot trigger โ but a hardware watchdog timer can.- A hardware watchdog timer won't notice if a single CPU is stuck, or if the system timecounter is stuck, as long as at least one CPU is not stuck and able to run
wdogctl(8)or the kernel watchdog tickle thread. In contrast,options HEARTBEATuses hard interrupts on each CPU to cross-check soft interrupt progress on another CPU as well as the timecounter, so it can detect when a single CPU is unable to make progress when others are able. ๐
options HEARTBEAT_MAX_PERIOD_DEFAULT=integerโ time in seconds since the lastoptions HEARTBEATprogress check has passed before it will trigger a panic. Default:15.
Can be changed at runtime via the kern.heartbeat.max_period sysctl(7) knob.
options HZ=integerโ on ports that support it, sets the system clock frequency (seehz(9)) to the supplied value. Handle with care, bestie. โ ๏ธoptions NTPโ turns on in-kernel precision timekeeping support used by software implementing NTP (Network Time Protocol, RFC 1305). The NTP option adds an in-kernel Phase-Locked Loop (PLL) for normal NTP operation, and a Frequency-Locked Loop (FLL) for intermittently-connected operation.ntpd(8)will employ a user-level PLL when kernel support is unavailable, but the in-kernel version has lower latency and more precision, so it typically keeps much better time. โญ
The interface to the kernel NTP support is provided by the ntp_adjtime(2) and ntp_gettime(2) system calls, which are intended for use by ntpd(8) and are enabled by the option. On systems with sub-microsecond resolution timers, or where (HZ/100000) is not an integer, the NTP option also enables extended-precision arithmetic to keep track of fractional clock ticks at NTP time-format precision.
options PPS_SYNCโ this option enables a kernel serial line discipline for receiving time phase signals from an external reference clock, like a radio clock. Some reference clocks generate a Pulse Per Second (PPS) signal in phase with their time source. The PPS line discipline receives this signal on either the data leads or the DCD control lead of a serial port. ๐
NTP uses the PPS signal to discipline the local clock oscillator to a high degree of precision (typically less than 50 microseconds in time and 0.1 ppm in accuracy). PPS can also generate a serial output pulse when the system receives a PPS interrupt. This can be used to measure the system interrupt latency and thus calibrate NTP to account for it. Using PPS usually requires a gadget box to convert from TTL to RS-232 signal levels. The gadget box and PPS are described in more detail in the HTML documentation for ntpd(8) in /usr/share/doc/reference/ref8/ntp.
NetBSD currently supports this option in com(4) and zsc(4).
NOTE: Using this option will also enable options NTP.
options SETUIDSCRIPTSโ allows scripts with the setuid bit set to execute as the effective user rather than the real user, just like binary executables. ๐ฆ
NOTE: Using this option will also enable options FDSCRIPTS
options FDSCRIPTSโ allows execution of scripts with the execute bit set, but not the read bit, by opening the file and passing the file descriptor to the shell, rather than the filename. ๐
NOTE: Execute only (non-readable) scripts will haveargv[0]set to/dev/fd/*. What this option allows as far as security is concerned is the ability to safely ensure that the correct script is run by the interpreter, since it is passed as an already open file.
options RTC_OFFSET=integerโ okay so the kernel (and typically the hardware battery backed-up clock on those machines that have one) keeps time in UTC (Universal Coordinated Time, once known as GMT, or Greenwich Mean Time) and not in the time of the local time zone. TheRTC_OFFSEToption is used on some ports (such as the i386) to tell the kernel that the hardware clock is offset from UTC by the specified number of minutes. This is typically used when a machine boots several operating systems and one of them wants the hardware clock to run in the local time zone and not in UTC โ e.g.RTC_OFFSET=300means the hardware clock is set to US Eastern Time (300 minutes behind UTC), and not UTC. (Note:RTC_OFFSETis used to initialize a kernel variable namedrtc_offset, which is the source actually used to determine the clock offset, and which may be accessed via thekern.rtc_offsetsysctl variable. Seesysctl(8)andsysctl(3)for details. Since the kernel clock is initialized from the hardware clock very early in the boot process, it is not possible to meaningfully changertc_offsetin system initialization scripts. Changing this value currently may only be done at kernel compile time or by patching the kernel and rebooting.) ๐ซ
โ ๏ธ heads up bestie โ ๏ธ In so many cases where the hardware clock is kept in local time, it gets adjusted for Daylight Savings Time โ which means if you're trying to useRTC_OFFSETso NetBSD can coexist with an OS like Windows, you'd have to changeRTC_OFFSETtwice a year. So likeโฆ this solution is imperfect. Not the slay we wanted. ๐
options MAXUPRC=integerโ sets the softRLIMIT_NPROCresource limit for process 0, aka the max number of simultaneous processes a user is allowed to run; this value gets inherited by its child processes. Default?CHILD_MAX, which is currently defined as 160. You literally are not permitted to setMAXUPRClower thanCHILD_MAXโ that would violate the semantics ofISO/IEC 9945-1:1990 ("POSIX.1")and we don't do that here. ๐ โโ๏ธoptions NOFILE=integerโ sets the softRLIMIT_NOFILEresource limit, aka the max number of open file descriptors for each process; inherited by its child processes. It defaults toOPEN_MAX, currently defined as 128. ๐๏ธoptions MAXFILES=integerโ sets the default value of thekern.maxfilessysctl variable, which is the max number of files that can be open in the system. โจoptions DEFCORENAME=stringโ sets the default value of thekern.defcorenamesysctl variable, otherwise it's set to%n.core. Peepsysctl(8)andsysctl(3)for the deets. ๐ซถoptions RASOPS_CLIPPINGโ enables clipping within therasopsraster-console output system. NOTE: only available on architectures that userasopsfor console output. ๐ฅ๏ธoptions RASOPS_SMALLโ removes optimized character writing code from therasopsraster-console output system. NOTE: only available on architectures that userasopsfor console output. ๐options INCLUDE_CONFIG_FILEโ embeds the kernel config file used to define the kernel right into the kernel binary itself. The embedded data also includes any files directly included by the config file itself, e.g.GENERIC.localorstd.$MACHINE. You can extract the embedded config file from the resulting kernel withconfig(1) -x, or by running this iconic little command:
strings netbsd | sed -n 's/^_CFG_//p' | unvis
options INCLUDE_JUST_CONFIGโ similar to the above option, but includes just the actual config file, not any of the included files. ๐options PIPE_SOCKETPAIRโ use the slower but smallersocketpair(2)-based pipe implementation instead of the default faster but bigger one. Primarily useful for installation kernels. โ๏ธoptions USERCONFโ compiles in the in-kernel device configuration manager. Seeuserconf(4)for the details. ๐งoptions SCDEBUG_DEFAULTโ used with theoptions SYSCALL_DEBUGdescribed below to choose which types of events get displayed. ๐SCDEBUG_CALLSโ show system call entry points.SCDEBUG_RETURNSโ show system call exit points.SCDEBUG_ALLโ show all system call requests, including unimplemented calls.SCDEBUG_SHOWARGSโ show the arguments provided.SCDEBUG_KERNHISTโ store a restricted form of the system call debug in a kernel history instead of printing it to the console. This option relies uponoptions KERNHIST.
The default value is (SCDEBUG_CALLS|SCDEBUG_RETURNS|SCDEBUG_SHOWARGS).
options SYSCALL_DEBUGโ useful for debugging system call issues, usually in early single user bringup. By default it writes entries to the system console for most system call events. Can be configured with theoptions SCDEBUG_DEFAULToption to use theoptions KERNHISTfacility instead. ๐options SYSCALL_STATSโ counts the number of times each system call number is called. The values can be read through the sysctl interface and displayed usingsystat(1). NOTE: not yet available on all architectures. ๐options SYSCALL_TIMESโ counts the time spent (usingcpu_counter32()) in each system call. NOTE: using this option will also enableoptions SYSCALL_STATS. โฑ๏ธoptions SYSCALL_TIMES_HASCOUNTERโ forces use ofcpu_counter32()even ifcpu_hascounter()reports false. Useful for systems where the cycle counter doesn't run at a constant rate (e.g. Soekris boxes). ๐ฅoptions XSERVER_DDBโ a supplement toXSERVERthat adds support for enteringddb(4)while in X11. ๐options FILEASSOCโ support forfileassoc(9). Required foroptions PAX_SEGVGUARDandpseudo-device veriexec. ๐options FILEASSOC_NHOOKS=integerโ number of storage slots per file forfileassoc(9). Default is4. ๐๏ธ
๐ Networking Options ๐
options GATEWAYโ enablesIPFORWARDINGand (on most ports) increases the size ofNMBCLUSTERS. In general,GATEWAYis what you use to say "this system should act as a router," andIPFORWARDINGis not invoked directly. (Note thatGATEWAYhas no impact on protocols other than IP.)GATEWAYalso compiles IPv4 and IPv6 fast forwarding code into the kernel. ๐ฐ๏ธoptions IPFORWARDING=valueโ if value is1this enables IP routing behavior. If value is0(the default), it disables it. TheGATEWAYoption sets this to1automatically. With this option enabled, the machine will forward IP datagrams destined for other machines between its interfaces.
Careful, bestie ๐ Even without this option, the kernel will still forward some packets (such as source routed packets) โ removingGATEWAYandIPFORWARDINGis insufficient to stop all routing through a bastion host on a firewall โ source routing is controlled independently.
Note that IP forwarding may be turned on and off independently of the setting of the IPFORWARDING option through the use of the net.inet.ip.forwarding sysctl variable. If net.inet.ip.forwarding is 1, IP forwarding is on. See sysctl(8) and sysctl(3) for details. ๐๏ธ
options IFA_STATSโ tells the kernel to maintain per-address statistics on bytes sent and received over (currently) Internet and AppleTalk addresses. Not recommended โ it degrades system stability. ๐options IFQ_MAXLEN=valueโ increases the allowed size of the network interface packet queues. The default queue size is 50 packets, and you don't normally need to increase it. ๐ฆoptions IPSELSRCโ includes support for source-address selection policies. Seein_getifa(9). ๐ฏoptions MROUTINGโ includes support for IP multicast routers. You certainly wantINETwith this. Multicast routing is controlled by themrouted(8)daemon. See also optionPIM. ๐ณoptions PIMโ includes support for Protocol Independent Multicast (PIM) routing. You needMROUTINGandINETwith this. Software using this can be found e.g. inpkgsrc/net/xorp. ๐ฟoptions INETโ includes support for the TCP/IP protocol stack. You almost certainly want this. Seeinet(4)for details. ๐ฅoptions INET6โ includes support for the IPv6 protocol stack. Seeinet6(4)for details. UnlikeINET,INET6enables multicast routing code as well. This option requiresINETat this moment, but it should not. ๐ญoptions ND6_DEBUGโ this option sets the default value ofnet.inet6.icmp6.nd6_debugto1, for debugging IPv6 neighbor discovery protocol handling. Seesysctl(3)for details. ๐options IPSECโ includes support for the IPsec protocol, using the implementation derived from OpenBSD, relying onopencrypto(9)to carry out cryptographic operations. Seeipsec(4)for details. ๐options IPSEC_DEBUGโ enables debugging code in the IPsec stack. Seeipsec(4)for details.
Patent tea โ The IPSEC option includes support for IPsec Network Address Translator traversal (NAT-T), as described in RFCs 3947 and 3948. This feature might be patent-encumbered in some countries. ๐ฌ
options ALTQโ enables ALTQ (Alternate Queueing). For simple rate-limiting, usetbrconfig(8)to set up the interface transmission rate. To use queueing disciplines, their appropriate kernel options should also be defined (documented below). Queueing disciplines are managed byaltqd(8). Seealtq(9)for details. ๐ฆoptions ALTQ_HFSCโ include support for the ALTQ-implemented HFSC (Hierarchical Fair Service Curve) module. HFSC supports both link-sharing and guaranteed real-time services. HFSC employs a service curve based QoS model, and its unique feature is an ability to decouple delay and bandwidth allocation. RequiresALTQ_REDto use the RED queueing discipline on HFSC classes, orALTQ_RIOto use the RIO queueing discipline on HFSC classes. This option assumesALTQ. ๐options ALTQ_PRIQโ include support for ALTQ-implemented PRIQ (Priority Queueing). PRIQ implements a simple priority-based queueing discipline. A higher priority class is always served first. RequiresALTQ_REDto use the RED queueing discipline on HFSC classes, orALTQ_RIOto use the RIO queueing discipline on HFSC classes. This option assumesALTQ. ๐options ALTQ_WFQโ include support for ALTQ-implemented WFQ (Weighted Fair Queueing). WFQ implements a weighted-round robin scheduler for a set of queues. A weight can be assigned to each queue to give a different proportion of the link capacity. A hash function is used to map a flow to one of a set of queues. This option assumesALTQ. โ๏ธoptions ALTQ_FIFOQโ include support for ALTQ-implemented FIFO queueing. FIFOQ is a simple drop-tail FIFO (First In, First Out) queueing discipline. This option assumesALTQ. ๐ถโโ๏ธoptions ALTQ_RIOโ include support for ALTQ-implemented RIO (RED with In/Out). The original RIO has 2 sets of RED parameters; one for in-profile packets and the other for out-of-profile packets. At the ingress of the network, profile meters tag packets as IN or OUT based on contracted profiles for customers. Inside the network, IN packets receive preferential treatment by the RIO dropper. ALTQ/RIO has 3 drop precedence levels defined for the Assured Forwarding PHB of DiffServ (RFC 2597). This option assumesALTQ. ๐ญoptions ALTQ_BLUEโ include support for ALTQ-implemented Blue buffer management. Blue is another active buffer management mechanism. This option assumesALTQ. ๐options ALTQ_FLOWVALVEโ include support for ALTQ-implemented Flowvalve. Flowvalve is a simple implementation of a RED penalty box that identifies and punishes misbehaving flows. This option requiresALTQ_REDand assumesALTQ. ๐จoptions ALTQ_CDNRโ include support for ALTQ-implemented CDNR (diffserv traffic conditioner) packet marking/manipulation. Traffic conditioners are components to meter, mark, or drop incoming packets according to some rules. As opposed to queueing disciplines, traffic conditioners handle incoming packets at an input interface. This option assumesALTQ. ๐จoptions ALTQ_NOPCCโ okay so this one straight-up disables using the processor cycle counter to measure time in ALTQ. Bestie, you only define this if you're on a non-Pentium i386 CPU that doesn't have TSC, or SMP (because per-CPU counters are not in sync), or power management that messes with the processor cycle counter. This option assumesALTQ. ๐options ALTQ_IPSECโ Include support for IPsec in IPv4 ALTQ. This option assumesALTQ. โจoptions ALTQ_JOBSโ Include support for ALTQ-implemented JoBS (Joint Buffer Management and Scheduling). This option assumesALTQ.options ALTQ_AFMAPโ Include support for an undocumented ALTQ feature that is used to map an IP flow to an ATM VC (Virtual Circuit). This option assumesALTQ.options ALTQ_LOCALQโ Include support for ALTQ-implemented local queues. Ngl its practical use is undefined. AssumesALTQ. ๐options SUBNETSARELOCALโ Sets default value fornet.inet.ip.subnetsarelocalvariable, which controls whether non-directly-connected subnets of connected networks are considered "local" for purposes of choosing the MSS for a TCP connection. This is mostly present for historic reasons and completely irrelevant if you enable Path MTU discovery.options HOSTZEROBROADCASTโ Sets default value fornet.inet.ip.hostzerobroadcastvariable, which controls whether the zeroth host address of each connected subnet is also considered a broadcast address. Default value is "1", for compatibility with old systems; if this is set to zero on all hosts on a subnet, you should be able to fit an extra host per subnet on the ".0" address. ๐options MCLSHIFT=valueโ This option is the base-2 logarithm of the size of mbuf clusters. The BSD networking stack keeps network packets in a linked list, or chain, of kernel buffer objects called mbufs. The system provides larger mbuf clusters as an optimization for large packets, instead of using long chains for large packets. The mbuf cluster size, orMCLBYTES, must be a power of two, and is computed as two raised to the powerMCLSHIFT. On systems with Ethernet network adapters,MCLSHIFTis often set to 11, giving 2048-byte mbuf clusters, large enough to hold a 1500-byte Ethernet frame in a single cluster. Systems with network interfaces supporting larger frame sizes like ATM, FDDI, or HIPPI may perform better withMCLSHIFTset to 12 or 13, giving mbuf cluster sizes of 4096 and 8192 bytes, respectively. ๐ธoptions NETATALKโ Include support for the AppleTalk protocol stack. The kernel provides provision for the Datagram Delivery Protocol (DDP), providingSOCK_DGRAMsupport and AppleTalk routing. This stack is used by the NETATALK package, which adds support for AppleTalk server services via user libraries and applications.options BLUETOOTHโ Include support for the Bluetooth protocol stack. Seebluetooth(4)for details. ๐ฆoptions IPNOPRIVPORTSโ Normally, only root can bind a socket descriptor to a so-called โprivilegedโ TCP port, that is, a port number in the range 0-1023. This option eliminates those checks from the kernel. This can be useful if there is a desire to allow daemons without privileges to bind those ports, e.g., on firewalls. The security tradeoffs in doing this are subtle. This option should only be used by experts. ๐options TCP_DEBUGโ Record the lastTCP_NDEBUGTCP packets withSO_DEBUGset, and decode to the console iftcpconsdebugis set.options TCP_NDEBUGโ Number of packets to record forTCP_DEBUG. Defaults to 100. โจoptions TCP_SENDSPACE=valueoptions TCP_RECVSPACE=value
These options set the max TCP window size to other sizes than the default. The TCP window sizes can be altered via sysctl(8) as well. ๐ซถ
options TCP_INIT_WIN=valueโ This option sets the initial TCP window size for non-local connections, which is used when the transmission starts. The default size is 1, but if the machine should act more aggressively, the initial size can be set to some other value. The initial TCP window size can be set viasysctl(8)as well.options TCP_SIGNATUREโ Enable MD5 TCP signatures (RFC 2385) to protect BGP sessions. ๐ฅoptions IPFILTER_LOGโ This option, in conjunction with pseudo-deviceipfilter, enables logging of IP packets using IP-Filter.options IPFILTER_LOOKUPโ This option enables the IP-Filterippool(8)functionality to be enabled.options IPFILTER_COMPATโ This option enables older IP-Filter binaries to work.options IPFILTER_DEFAULT_BLOCKโ This option sets the default policy of IP-Filter. If it is set, IP-Filter will block packets by default.options MBUFTRACEโ This option can help track down mbuf leaks. When enabled, mbufs are tagged with the devices and protocols using them. This can significantly decrease network performance, particularly on MP systems. This additional information can be viewed withnetstat(1):
netstat -mssv
Not all devices or protocols support this option. ๐ญ
โจ Sysctl Related Options โจ
options SYSCTL_DISALLOW_CREATEโ Disallows the creation or deletion of nodes from the sysctl tree, as well as the assigning of descriptions to nodes that lack them, by any process. These operations are still available to kernel sub-systems, including loadable kernel modules.options SYSCTL_DISALLOW_KWRITEโ Prevents processes from adding nodes to the sysctl tree that make existing kernel memory areas writable. Sections of kernel memory can still be read and new nodes that own their own data may still be writable.options SYSCTL_DEBUG_SETUPโ Causes theSYSCTL_SETUProutines to print a brief message when they are invoked. This is merely meant as an aid in determining the order in which sections of the tree are created.options SYSCTL_DEBUG_CREATEโ Prints a message each timesysctl_create(), the function that adds nodes to the tree, is called.options SYSCTL_INCLUDE_DESCRโ Causes the kernel to include short, human readable descriptions for nodes in the sysctl tree. The descriptions can be retrieved programmatically (seesysctl(3)), or by the sysctl binary itself (seesysctl(8)). The descriptions are meant to give an indication of the purpose and/or effects of a given node's value, not replace the documentation for the given subsystem as a whole. ๐
๐ System V IPC Options ๐
options SYSVMSGโ Includes support for AT&T System V UNIX style message queues. Seemsgctl(2),msgget(2),msgrcv(2),msgsnd(2). ๐options SYSVSEMโ Includes support for AT&T System V UNIX style semaphores. Seesemctl(2),semget(2),semop(2).options SEMMNI=valueโ Sets the number of AT&T System V UNIX style semaphore identifiers. The GENERIC config file for your port will have the default.options SEMMNS=valueโ Sets the number of AT&T System V UNIX style semaphores in the system. The GENERIC config file for your port will have the default.options SEMUME=valueโ Sets the maximum number of undo entries per process for AT&T System V UNIX style semaphores. The GENERIC config file for your port will have the default.options SEMMNU=valueโ Sets the number of undo structures in the system for AT&T System V UNIX style semaphores. The GENERIC config file for your port will have the default.options SYSVSHMโ Includes support for AT&T System V UNIX style shared memory. Seeshmat(2),shmctl(2),shmdt(2),shmget(2). ๐options SHMMAXPGS=valueโ Sets the maximum number of AT&T System V UNIX style shared memory pages that are available through theshmget(2)system call. Default value is 1024 on most ports. See/usr/include/machine/vmparam.hfor the default.
๐ VM Related Options ๐
options NMBCLUSTERS=valueโ The number of mbuf clusters the kernel supports. Mbuf clusters areMCLBYTESin size (usually 2k). The default value is calculated from the amount of physical memory. Architectures without direct mapping also limit it based on thekmem_mapsize, which is used as backing store. Some archs limit the value with โNMBCLUSTERS_MAXโ. See/usr/include/machine/param.hfor those archs. This value can be accessed via thekern.mbuf.nmbclusterssysctl variable. Increase this value if you get โmclpool limit reachedโ messages. ๐ฅoptions NMBCLUSTERS_MAX=valueโ The upper limit ofNMBCLUSTERS. โญoptions NKMEMPAGES=valueoptions NKMEMPAGES_MIN=valueoptions NKMEMPAGES_MAX=value
Size of kernel VM map kmem_map, in PAGE_SIZE-sized chunks (the VM page size; this value may be read from the sysctl(8) variable hw.pagesize). This VM map is used to map the kernel malloc arena. The kernel attempts to auto-size this map based on the amount of physical memory in the system. Platform-specific code may place bounds on this computed size, which may be viewed with the sysctl(8) variable vm.nkmempages. See /usr/include/machine/param.h for the default upper and lower bounds. The related options โNKMEMPAGES_MINโ and โNKMEMPAGES_MAXโ allow the bounds to be overridden in the kernel configuration file. These options are provided in the event the computed value is insufficient resulting in an โout of space in kmem_mapโ panic. ๐ญ
options SB_MAX=valueโ Sets the max size in bytes that a socket buffer is allowed to occupy. The default is 256k, but sometimes it needs to be increased, for example when using large TCP windows. This option can be changed viasysctl(8)as well.options SOMAXKVA=valueโ Sets the maximum size of kernel virtual memory that the socket buffers are allowed to use. The default is 16MB, but in situations where for example large TCP windows are used this value must also be increased. This option can be changed viasysctl(8)as well. ๐งoptions BUFCACHE=valueโ Size of the buffer cache as a percentage of total available RAM. Ignored ifBUFPAGESis also specified.options NBUF=valueโ Sets the number of buffer headers available, i.e., the number of open files that may have a buffer cache entry. Each buffer header requiresMAXBSIZE(machine dependent, but usually 65536) bytes. The default value is machine dependent, but is usually equal to the value ofBUFPAGES.options BUFPAGES=valueโ These options set the number of pages available for the buffer cache. Their default value is a machine dependent value, often calculated as between 5% and 10% of total available RAM. ๐options MAXTSIZ=bytesโ Sets the maximum size limit of a process' text segment. See/usr/include/machine/vmparam.hfor the port-specific default.options DFLDSIZ=bytesโ Sets the default size limit of a process' data segment, the value that will be returned as the soft limit forRLIMIT_DATA(as returned bygetrlimit(2)). See/usr/include/machine/vmparam.hfor the port-specific default. ๐options MAXDSIZ=bytesโ this sets the absolute max size limit of a process' data segment, aka the value that gets handed back as the hard limit forRLIMIT_DATA(as returned bygetrlimit(2)). Wanna know your port's default? Peek at/usr/include/machine/vmparam.hโจoptions DFLSSIZ=bytesโ sets the default size limit of a process' stack segment, the value returned as the soft limit forRLIMIT_STACK(as returned bygetrlimit(2)). Port-specific default lives in/usr/include/machine/vmparam.h๐options MAXSSIZ=bytesโ sets the maximum size limit of a process' stack segment, returned as the hard limit forRLIMIT_STACK(as returned bygetrlimit(2)). Again:/usr/include/machine/vmparam.hfor the port-specific default ๐options DUMP_ON_PANIC=integerโ defaults to one. Set it to zero and the kernel will not dump to the dump device when it panics โ though ngl you can still force a dump viaddb(4)with thesynccommand. Heads up: this sets the value of thekern.dump_on_panicsysctl(3)variable, which can be changed at run time โ checksysctl(8)for the deets ๐options VMSWAPโ enables paging device/file support. It's on by default, bestie, nothing to do here ๐ซถoptions VMSWAP_DEFAULT_PLAINTEXTโ stores swap in plaintext instead of encrypted, which can expose secrets if the underlying nonvolatile medium gets disclosed ๐ญ This one is off by default; it exists only for extremely slow machines where the perf hit of swapping early at boot outweighs the security risks. Swap encryption can still be flipped on dynamically with thevm.swap_encryptsysctl(7)knob.options PDPOLICY_CLOCKPROโ use CLOCK-Pro, an alternative page replace policy ๐
๐ Security Options ๐
options INSECUREโ initializes the kernel security level with-1instead of0. So the system always starts in secure level-1mode, even when running multiuser โ unless thesecurelevelvariable is set to a value> -1in/etc/rc.conf. In that case the kernel security level gets raised to that value when the/etc/rc.d/securelevelscript runs during system startup. See the manual page forinit(8)for what that actually implies, because it's a lot ๐ณ The kernel secure level may be manipulated by the superuser by altering thekern.securelevelsysctl(3)variable (and fr, the secure level may only be lowered by a call from process ID 1, i.e.,init(8)). See alsosecmodel_securelevel(9),sysctl(8)andsysctl(3).options VERIFIED_EXEC_FP_SHA256โ enables support for SHA256 hashes in Veriexec โจoptions VERIFIED_EXEC_FP_SHA384โ enables support for SHA384 hashes in Veriexec โจoptions VERIFIED_EXEC_FP_SHA512โ enables support for SHA512 hashes in Veriexec โจoptions PAX_MPROTECT=valueโ enables PaX MPROTECT, themprotect(2)restrictions from the PaX project ๐ก๏ธ
The value is the default value for the global knob, see sysctl(3). If 0, PaX MPROTECT is enabled only if explicitly set on programs using paxctl(8). If 1, PaX MPROTECT is enabled for all programs. Programs can be exempted using paxctl(8).
See security(7) for more details.
options PAX_SEGVGUARD=valueโ enables PaX Segvguard. Requiresoptions FILEASSOCโ ๏ธ
The value is the default value for the global knob, see sysctl(3). If 0, PaX Segvguard is enabled only if explicitly set on programs using paxctl(8). If 1, PaX Segvguard is enabled to all programs, and exemption can be done using paxctl(8).
See security(7) for more details.
options PAX_ASLR=valueโ enables PaX ASLR ๐ฒ
The value is the default value for the global knob, see sysctl(3). If 0, PaX ASLR is enabled only if explicitly set on programs using paxctl(8). If 1, PaX ASLR is enabled to all programs, and exemption can be done using paxctl(8).
See security(7) for more details.
options USER_VA0_DISABLE_DEFAULT=valueโ sets the initial value of the flag controlling whether user programs can map virtual address0. The flag can be changed at runtime bysysctl(3)๐ซoptions KASANโ enables Kernel Address Sanitizer. NOTE: not available on all architectures ๐options KASLRโ enables Kernel ASLR. This randomizes where the kernel image sits in memory ๐ NOTE: not available on all architectures.options SVSโ enables Separate Virtual Space. On architectures designed to function with a shared address space, this option explicitly isolates the kernel and user spaces. NOTE: not available on all architectures ๐ฆ
๐ง amiga-specific Options ๐ง
options BB060STUPIDROMโ when the bootloader (which passes AmigaOS ROM info) claims we have a 68060 CPU without an FPU, this goes and looks into the Processor Configuration Register (PCR) to find out. You need this with Amiga ROMs up to (at least)V40.xxx(OS3.1), when you boot via the bootblocks and don't have a DraCo ๐options IOBZCLOCK=frequencyโ IOBlix boards come with two different serial master clocks: older ones use 24 MHz, newer ones use 22.1184 MHz. The driver normally assumes the latter. If your board uses 24 MHz, you can recompile your kernel withoptions IOBZCLOCK=24000000or patch the kernel variableiobzclockto the same value ๐ฐ๏ธoptions LIMITMEM=valueโ if there, it limits the part of the first memory bank used by NetBSD to value megabytes. Default is unlimited ๐options P5PPC68KBOARDโ adds special support for Phase5 mixed 68k+PPC boards. Currently this only affects rebooting from NetBSD and is only needed on 68040+PPC, not on 68060+PPC; without this, affected machines will hang after NetBSD has shut down and will only restart after a keyboard reset or a power cycle ๐ญ
๐ธ atari-specific Options ๐ธ
options DISKLABEL_AHDIโ include support for AHDI (native Atari) disklabels ๐พoptions DISKLABEL_NBDAโ include support for NetBSD/atari labels. If you don't set this option, it'll be set automatically. NetBSD/atari will not work without it โ ๏ธoptions FALCON_SCSIโ include support for the 5380-SCSI configuration as found on the Falcon.options RELOC_KERNELโ if set, the kernel relocates itself to TT-RAM, if possible. This gives you a slightly faster system โจ Beware that on some TT030 systems, the system will frequently dump with MMU-faults with this option enabled ๐options SERCONSOLEโ allows themodem1-port to act as the system-console. A carrier should be active onmodem1during system boot to activate the console functionality ๐กoptions TT_SCSIโ include support for the 5380-SCSI configuration as found on the TT030 and Hades.
๐ i386-specific Options ๐
options CPURESET_DELAY=valueโ specifies the time (in millisecond) to wait before doing a hardware reset in the last phase of a reboot. Gives the user a chance to actually see the error messages from the shutdown operations (like NFS unmounts, buffer cache flush, etc ...). Setting this to0disables the delay. Default is 2 seconds โฑ๏ธoptions USER_LDTโ includes i386-specific system calls for modifying the local descriptor table, used by Windows emulators ๐ชoptions PAEโ enables PAE (Physical Address Extension) mode. PAE permits up to 36 bits physical addressing (64GB of physical memory), and turns physical addresses into 64-bit entities in the memory management subsystem. Userland virtual address space stays at 32 bits (4GB). PAE mode is required to enable the NX/XD (No-eXecute/eXecute Disable) bit for pages, which lets you mark certain ones as not executable. Any attempt to execute code from such a page will raise an exception ๐ฅoptions REALBASEMEM=integerโ overrides the base memory size passed in from the boot block. (Value given in kilobytes.) Use this option only if the boot block reports the size incorrectly ๐ (Note that some BIOSes put the extended BIOS data area at the top of base memory, and therefore report a smaller base memory size to prevent programs overwriting it. This is correct behavior, and you should not use theREALBASEMEMoption to access this memory.)options SPECTRE_V2_GCC_MITIGATION=1โ enable GCC-specific Spectre variant 2 mitigations ๐ป For 32-bit kernels this means these options:
-mindirect-branch=thunk -mindirect-branch-register
For 64-bit kernels this means these options:
-mindirect-branch=thunk-inline -mindirect-branch-register
options REALEXTMEM=integerโ overrides the extended memory size passed in from the boot block. (Value given in kilobytes. Extended memory does not include the first megabyte.) Use this option only if the boot block reports the size incorrectly ๐options CYRIX_CACHE_WORKSโ relevant only to the Cyrix 486DLC CPU. This option turns on the cache in hold-flush mode. It is not turned on by default because it is known to have problems in certain motherboard implementations ๐ฌoptions CYRIX_CACHE_REALLY_WORKSโ relevant only to the Cyrix 486DLC CPU. This option turns on the cache in write-back mode. It is not turned on by default because it is known to have problems in certain motherboard implementations. In order for this option to take effect,option CYRIX_CACHE_WORKSmust also be specified โ ๏ธoptions PCIBIOSโ enable support for initializing the PCI bus using information from the BIOS. Seepcibios(4)for details.options MTRRโ include support for accessing MTRR registers from user-space. Seei386_get_mtrr(2).options BEEP_ONHALTโ makes the system speaker emit several beeps when it is completely safe to power down the computer after ahalt(8)command ๐ Requiressysbeep(4)support.options BEEP_ONHALT_COUNT=timesโ number of times to beep the speaker whenoptions BEEP_ONHALTis enabled. Defaults to3๐ตoptions BEEP_ONHALT_PITCH=hzโ the tone frequency used whenoptions BEEP_ONHALToption, in hertz. Defaults to1500๐ถoptions BEEP_ONHALT_PERIOD=msecsโ the duration of each beep whenoptions BEEP_ONHALTis enabled, in milliseconds. Defaults to250โฒ๏ธoptions MULTIBOOTโ makes the kernel Multiboot-compliant, letting it boot through a Multiboot-compliant boot manager such as GRUB. Seemultiboot(8)for more info ๐ฅพoptions SPLASHSCREENโ display a splash screen during boot ๐โจ
๐ฆ isa-specific Options ๐ฆ
Options specific to isa(4) busses.
options PCIC_ISA_ALLOC_IOBASE=address,options PCIC_ISA_ALLOC_IOSIZE=sizeโ control the section of IO bus space used for PCMCIA bus space mapping. Ideally the probed defaults are satisfactory, however in practice that is not always the case ๐ Seepcmcia(4)for details.options PCIC_ISA_INTR_ALLOC_MASK=maskโ controls the allowable interrupts that may be used for PCMCIA devices. This mask is a logical-or of power-of-2s of allowable interrupts: ๐
IRQ Val IRQ Val IRQ Val IRQ Val
0 0x0001 4 0x0010 8 0x0100 12 0x1000
1 0x0002 5 0x0020 9 0x0200 13 0x2000
2 0x0004 6 0x0040 10 0x0400 14 0x4000
3 0x0008 7 0x0080 11 0x0800 15 0x8000
options PCKBC_CNATTACH_SELFTESTโ makes the kernel run a self test on the keyboard controller before it attaches it as a console. When is this a whole thing? On boxes where you boot on cold iron andpckbcjust refuses to talk until you politely request a self test. Rn only the netwinder port uses this ๐options PCKBD_CNATTACH_MAY_FAILโ set this and the PS/2 keyboard won't get forced into console duty if it can't be found during boot. Iconic behavior actually: it frees up the console keyboard slot for other keyboards, like USB ๐options PCKBD_LAYOUT=layoutโ picks the default keyboard layout. Peeppckbd(4)for the deets.
๐ธ m68k-specific Options ๐ธ
options FPU_EMULATEโ pulls in support for the MC68881/MC68882 emulator.options FPSPโ pulls in support for 68040 floating point.options M68020,M68030,M68040,M68060โ include support for a specific CPU. Bestie, at least one (the one you're literally using) should be specified, k?options M060SPโ software support for the 68060. This gives you emulation of unimplemented integer instructions, plus emulation of unimplemented floating point instructions and data types, plus software support for floating point traps. It's giving overachiever fr fr.
๐ powerpc-specific Options (OEA Only) ๐
options PMAP_MEMLIMIT=valueโ caps the amount of memory the kernel sees at value bytes.options PTEGCOUNT=valueโ sets the size of the page table as value PTE groups. Normally, one PTEG is allocated per physical page frame.
โญ sparc-specific Options โญ
options AUDIO_DEBUGโ turns on simple event debugging for the logging of theaudio(4)device.options BLINKโ enables blinking of the LED. Blink rate is a full cycle every N seconds for N < then current load average. Seegetloadavg(3).options COUNT_SW_LEFTOVERSโ counts how many times theswSCSI device has left 3, 2, 1 and 0 in thesw_3_leftover,sw_2_leftover,sw_1_leftover, andsw_0_leftovervariables, all accessible fromddb(4). Seesw(4).options DEBUG_ALIGNโ adds debugging message calls when user-requested alignment fault handling happens.options DEBUG_EMULโ adds debugging message calls for emulated floating point and alignment fixing operations.options EXTREME_DEBUGโ adds debugging functions you can call fromddb(4). Thedebug_pagetables,test_regionandprint_fe_mapfunctions print info about page tables, and heads up โ that's for the SUN4M platforms only.options EXTREME_EXTREME_DEBUGโ adds extra info tooptions EXTREME_DEBUG. The name? Unhinged. The concept? Also unhinged. Slay tho ๐options FPU_CONTEXTโ makesoptions COMPAT_SVR4getcontextandsetcontextinclude floating point registers.options MAGMA_DEBUGโ adds debugging messages to themagma(4)device.options RASTERCONS_FULLSCREENโ uses the entire screen for the console. No crumbs. ๐options RASTERCONS_SMALLFONTโ uses the Fixed font on the console instead of the normal font.options SUN4โ support sun4 class machines.options SUN4Cโ support sun4c class machines.options SUN4Mโ support sun4m class machines.options SUN4_MMU3Lโ enables support for sun4 3-level MMU machines.options V9โ enables SPARC V9 assembler inddb(4).
๐ฆ sparc64-specific Options ๐ฆ
options AUDIO_DEBUGโ enables simple event debugging of the logging of theaudio(4)device.options BLINKโ enables blinking of the LED. Blink rate is a full cycle every N seconds for N < then current load average. Seegetloadavg(3).
๐ x68k-specific Options ๐
options EXTENDED_MEMORYโ includes support for extended memory, e.g. TS-6BE16 and 060turbo on-board.options JUPITERโ includes support for Jupiter-X MPU acceleratoroptions ZSCONSOLE,ZSCN_SPEED=valueโ use the built-in serial port as the system-console. Speed is specified in bps, defaults to9600.options ITE_KERNEL_ATTR=valueโ sets the kernel message attribute for ITE. Value, an integer, is a logical or of the following values:1โ color inversed2โ underlined4โ bolded
๐ฅ x86-specific Options ๐ฅ
options NO_PCI_MSI_MSIXโ disables support for MSI/MSIX in the kernel. Peeppci_msi(9)for the details of MSI/MSIX support.options NO_PREEMPTIONโ disableskpreempt(9)support in the kernel.
๐ SEE ALSO ๐
config(1), gcc(1), gdb(1), ktrace(1), quota(1), vndcompress(1), gettimeofday(2), i386_get_mtrr(2), i386_iopl(2), msgctl(2), msgget(2), msgrcv(2), msgsnd(2), ntp_adjtime(2), ntp_gettime(2), reboot(2), semctl(2), semget(2), semop(2), shmat(2), shmctl(2), shmdt(2), shmget(2), sysctl(3), apm(4), ddb(4), inet(4), md(4), pcibios(4), pcmcia(4), ppp(4), userconf(4), vnd(4), wscons(4), config(5), edquota(8), init(8), mdsetimage(8), mount_cd9660(8), mount_fdesc(8), mount_kernfs(8), mount_lfs(8), mount_mfs(8), mount_msdos(8), mount_nfs(8), mount_ntfs(8), mount_null(8), mount_portal(8), mount_procfs(8), mount_udf(8), mount_umap(8), mount_union(8), mrouted(8), newfs_lfs(8), ntpd(8), quotaon(8), rpc.rquotad(8), sysctl(8), cnmagic(9), in_getifa(9), kernhist(9)
๐ HISTORY ๐
The options man page first appeared in NetBSD 1.3. A true elder, we respect her ๐ซถ
okay that's the whole page bestie, you made it to the end, and the vibe check passed โจ this one's from the Debian crew, dated December 12, 2025, and it lives at OPTIONS(4) โ go forth and configure your kernel, ily, mwah ๐
๐ฆ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 1996 Perry E. Metzger. All rights reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms