1# $Id: options,v 1.88 1998/07/12 01:48:14 bde Exp $ 2# 3# On the handling of kernel options 4# 5# All kernel options should be listed in LINT, with suitable 6# descriptions. Negative options (options that make some code not 7# compile) should be commented out; LINT should compile as much code 8# as possible. Try to structure option-using code so that a single 9# option only switch code on, or only switch code off, to make it 10# possible to have a full compile-test. If necessary, you can include 11# "opt_lint.h" and check for COMPILING_LINT to get maximum code 12# coverage. 13# 14# All new options shall also be listed in either "conf/options" or 15# "<machine>/conf/options.<machine>". Options that affect a single 16# source-file <xxx>.[c|s] should be directed into "opt_<xxx>.h", while 17# options that affect multiple files should either go in 18# "opt_global.h" if this is a kernel-wide option (used just about 19# everywhere), or in "opt_<option-name-in-lower-case>.h" if it affect 20# only some files. Note that the effect of listing only an option 21# without a header-file-name in conf/options (and cousins) is that the 22# last convention is followed. 23# 24# This handling scheme is not yet fully implemented. 25# 26# 27# Format of this file: 28# Option name filename 29# 30# If filename is missing, the default is 31# opt_<name-of-option-in-lower-case>.h 32 33# Miscellaneous options. 34BOUNCE_BUFFERS opt_bounce.h 35COMPAT_43 opt_compat.h 36COMPAT_SUNOS opt_compat.h 37COMPILING_LINT opt_lint.h 38DDB 39DDB_UNATTENDED opt_ddb.h 40GDB_REMOTE_CHAT opt_ddb.h 41DB_KLD_SYMBOLS opt_ddb.h 42DB_ELF_SYMBOLS opt_ddb.h 43DEVFS 44SLICE opt_devfs.h 45FAILSAFE 46HW_WDOG 47KTRACE 48MD5 49MFS_AUTOLOAD opt_mfs.h 50MFS_ROOT opt_mfs.h 51EXPORTMFS opt_mfs.h 52NO_LKM 53NSWAPDEV opt_swap.h 54PPS_SYNC opt_ntp.h 55QUOTA 56SPX_HACK 57SUIDDIR opt_suiddir.h 58SYSVMSG opt_sysvipc.h 59SYSVSEM opt_sysvipc.h 60SYSVSHM opt_sysvipc.h 61UCONSOLE 62 63# POSIX kernel options 64P1003_1B opt_posix.h 65_KPOSIX_PRIORITY_SCHEDULING opt_posix.h 66_KPOSIX_VERSION opt_posix.h 67 68# Do we want the config file compiled into the kernel? 69INCLUDE_CONFIG_FILE opt_config.h 70 71# Options for static file systems. These should only be used at config 72# time, since the corresponding lkms cannot work if there are any static 73# dependencies. Unusability is enforced by hiding the defines for the 74# options in a never-included header. 75EXT2FS opt_dontuse.h 76FDESC opt_dontuse.h 77KERNFS opt_dontuse.h 78MFS opt_dontuse.h 79MSDOSFS opt_dontuse.h 80NULLFS opt_dontuse.h 81PORTAL opt_dontuse.h 82PROCFS opt_dontuse.h 83UMAPFS opt_dontuse.h 84 85# These static filesystems has one slightly bogus static dependency in 86# sys/i386/i386/autoconf.c. If any of these filesystems are 87# statically compiled into the kernel, code for mounting them as root 88# filesystems will be enabled - but look below. Boot-code is purposely 89# unavailable for the LKM-based versions. 90CFS 91CD9660 92FFS 93NFS 94 95# If you are following the conditions in the copyright, 96# you can enable soft-updates which will speed up a lot of thigs 97# and make the system safer from crashes at the same time. 98# otherwise a STUB module will be compiled in. 99SOFTUPDATES opt_ffs.h 100 101# The above static dependencies are planned removed, with a 102# <filesystem>_ROOT option to control if it usable as root. This list 103# allows these options to be present in config files already (though 104# they won't make any difference yet). 105CD9660_ROOT opt_cd9660.h 106FFS_ROOT opt_ffs.h 107NFS_ROOT opt_nfsroot.h 108 109# Multi-session CD-Rs might require a huge amount of time in order to 110# "settle". If we are about mounting them as the root f/s, we gotta 111# wait a little. 112CD9660_ROOTDELAY opt_cd9660.h 113 114# The union static file system has bogus static dependencies, so it isn't 115# hidden yet. 116UNION 117 118# Options used only in param.c. 119MAXUSERS opt_param.h 120MSGMNB opt_param.h 121MSGMNI opt_param.h 122MSGSEG opt_param.h 123MSGSSZ opt_param.h 124MSGTQL opt_param.h 125NBUF opt_param.h 126NMBCLUSTERS opt_param.h 127SEMMAP opt_param.h 128SEMMNI opt_param.h 129SEMMNS opt_param.h 130SEMMNU opt_param.h 131SEMMSL opt_param.h 132SEMOPM opt_param.h 133SEMUME opt_param.h 134SHMALL opt_param.h 135SHMMAX opt_param.h 136SHMMAXPGS opt_param.h 137SHMMIN opt_param.h 138SHMMNI opt_param.h 139SHMSEG opt_param.h 140 141# Generic SCSI options. 142SCSIDEBUG opt_scsi.h 143SCSI_DELAY opt_scsi.h 144SCSI_REPORT_GEOMETRY opt_scsi.h 145SCSI_2_DEF opt_scsi.h 146NO_SCSI_SENSE opt_scsi.h 147 148# Options used only in scsi/od.c. 149OD_AUTO_TURNOFF opt_od.h 150OD_BOGUS_NOT_READY opt_od.h 151 152# Options used only in pci/ncr.c 153SCSI_NCR_DEBUG opt_ncr.h 154SCSI_NCR_DFLT_TAGS opt_ncr.h 155SCSI_NCR_MAX_SYNC opt_ncr.h 156SCSI_NCR_MAX_WIDE opt_ncr.h 157SCSI_NCR_MYADDR opt_ncr.h 158 159# Resource limits. 160DFLDSIZ opt_rlimit.h 161MAXDSIZ opt_rlimit.h 162 163# Net stuff. 164BOOTP opt_bootp.h 165BOOTP_COMPAT opt_bootp.h 166BOOTP_NFSROOT opt_bootp.h 167BOOTP_NFSV3 opt_bootp.h 168BOOTP_WIRED_TO opt_bootp.h 169MROUTING opt_mrouting.h 170INET opt_inet.h 171IPDIVERT 172IPFIREWALL opt_ipfw.h 173IPFIREWALL_VERBOSE opt_ipfw.h 174IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h 175IPFIREWALL_DEFAULT_TO_ACCEPT opt_ipfw.h 176IPFIREWALL_FORWARD opt_ipfw.h 177IPX opt_ipx.h 178IPXIP opt_ipx.h 179IPTUNNEL opt_ipx.h 180NETATALK opt_atalk.h 181PPP_BSDCOMP opt_ppp.h 182PPP_DEFLATE opt_ppp.h 183PPP_FILTER opt_ppp.h 184TCP_COMPAT_42 opt_compat.h 185TCPDEBUG 186IPFILTER opt_ipfilter.h 187IPFILTER_LOG opt_ipfilter.h 188IPFILTER_LKM opt_ipfilter.h 189 190# XXX Conflict: # of devices vs network protocol (Native ATM). 191# This makes "atm.h" unusable. 192NATM opt_natm.h 193 194# DPT driver debug flags 195DPT_VERIFY_HINTR opt_dpt.h 196DPT_USE_SINTR opt_dpt.h 197DPT_RESTRICTED_FREELIST opt_dpt.h 198DPT_MEASURE_PERFORMANCE opt_dpt.h 199DPT_FREELIST_IS_STACK opt_dpt.h 200DPT_HANDLE_TIMEOUTS opt_dpt.h 201DPT_TIMEOUT_FACTOR opt_dpt.h 202DPT_INTR_DELAY opt_dpt.h 203DPT_LOST_IRQ opt_dpt.h 204DPT_SHUTDOWN_SLEEP opt_dpt.h 205DPT_RESET_HBA opt_dpt.h 206 207# Misc debug flags. Most of these should probably be replaced with 208# 'DEBUG', and then let people recompile just the interesting modules 209# with 'make CC="cc -DDEBUG'. 210CLUSTERDEBUG opt_debug_cluster.h 211DEBUG_1284 opt_debug_1284.h 212LOCKF_DEBUG opt_debug_lockf.h 213LOUTB opt_debug_outb.h 214NPX_DEBUG opt_debug_npx.h 215NETATALKDEBUG opt_atalk.h 216NULLFS_DIAGNOSTIC opt_debug_nullfs.h 217SI_DEBUG opt_debug_si.h 218 219 220# These cause changes all over the kernel 221DEBUG opt_global.h 222DIAGNOSTIC opt_global.h 223SIMPLELOCK_DEBUG opt_global.h 224ENABLE_VFS_IOOPT opt_global.h 225 226# These are VM related options 227VM_KMEM_SIZE opt_vm.h 228VM_KMEM_SIZE_SCALE opt_vm.h 229VM_KMEM_SIZE_MAX opt_vm.h 230PQ_NOOPT opt_vmpage.h 231PQ_NORMALCACHE opt_vmpage.h 232PQ_MEDIUMCACHE opt_vmpage.h 233PQ_LARGECACHE opt_vmpage.h 234PQ_HUGECACHE opt_vmpage.h 235 236 237# sys/netkey 238KEY 239KEY_DEBUG opt_key.h 240 241# Size of the kernel message buffer 242MSGBUF_SIZE opt_msgbuf.h 243 244# PCI related options 245PCI_QUIET opt_pci.h 246 247# NFS options 248NFS_MINATTRTIMO opt_nfs.h 249NFS_MAXATTRTIMO opt_nfs.h 250NFS_MINDIRATTRTIMO opt_nfs.h 251NFS_MAXDIRATTRTIMO opt_nfs.h 252NFS_GATHERDELAY opt_nfs.h 253NFS_UIDHASHSIZ opt_nfs.h 254NFS_WDELAYHASHSIZ opt_nfs.h 255NFS_MUIDHASHSIZ opt_nfs.h 256NFS_NOSERVER opt_nfs.h 257NFS_DEBUG opt_nfs.h 258 259# give bktr an opt_bktr.h file 260OVERRIDE_TUNER opt_bktr.h 261 262# Include tweaks for running under the SimOS machine simulator. 263SIMOS opt_simos.h 264