xref: /freebsd/sys/conf/options (revision 3ff369fed2a08f32dda232c10470b949bef9489f)
1# $FreeBSD$
2#
3#        On the handling of kernel options
4#
5# All kernel options should be listed in NOTES, with suitable
6# descriptions.  Negative options (options that make some code not
7# compile) should be commented out; LINT (generated from NOTES) should
8# compile as much code as possible.  Try to structure option-using
9# code so that a single option only switch code on, or only switch
10# code off, to make it possible to have a full compile-test.  If
11# necessary, you can 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# "conf/options.<machine>".  Options that affect a single source-file
16# <xxx>.[c|s] should be directed into "opt_<xxx>.h", while options
17# that affect multiple files should either go in "opt_global.h" if
18# this is a kernel-wide option (used just about everywhere), or in
19# "opt_<option-name-in-lower-case>.h" if it affect only some files.
20# Note that the effect of listing only an option without a
21# header-file-name in conf/options (and cousins) is that the last
22# 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# Adaptec Array Controller driver options
34AAC_COMPAT_LINUX	opt_aac.h	# Enable the linux ioctl interface
35
36AAC_DEBUG		opt_aac.h	# Debugging levels:
37					# 0 - quiet, only emit warnings
38					# 1 - noisy, emit major function
39					#     points and things done
40					# 2 - extremely noisy, emit trace
41					#     items in loops, etc.
42
43# Adaptec aic7xxx SCSI controller options
44AHC_ALLOW_MEMIO		opt_aic7xxx.h	# Allow PCI devices to use memory
45					# mapped I/O
46
47AHC_TMODE_ENABLE	opt_aic7xxx.h	# Bitmap of units to enable
48					# targetmode operations.
49
50AHC_DUMP_EEPROM		opt_aic7xxx.h	# Dump the contents of our
51					# configuration prom.
52
53AHC_DEBUG_SEQUENCER	opt_aic7xxx.h	# Enable diagnostic sequencer code
54
55# Adaptec aic79xx SCSI controller options
56AHD_DEBUG		opt_aic79xx.h	# Compile in aic79xx debugging code.
57
58AHD_DEBUG_OPTS		opt_aic79xx.h	# Aic79xx driver debugging options.
59					# See sys/dev/aic79xx/aic79xx.h
60
61ADW_ALLOW_MEMIO		opt_adw.h	# Allow PCI devices to use memory
62					# mapped I/O
63
64# Miscellaneous options.
65GEOM		opt_geom.h
66
67ADAPTIVE_MUTEXES
68COMPAT_43	opt_compat.h
69COMPAT_SUNOS	opt_compat.h
70COMPILING_LINT	opt_global.h
71CY_PCI_FASTINTR
72CONSPEED	opt_comconsole.h
73DDB
74DDB_NOKLDSYM	opt_ddb.h
75DDB_UNATTENDED	opt_ddb.h
76GDB_REMOTE_CHAT	opt_ddb.h
77GDBSPEED	opt_ddb.h
78NODEVFS		opt_devfs.h
79HW_WDOG
80KTRACE
81KTRACE_REQUEST_POOL	opt_ktrace.h
82LIBICONV
83MD_ROOT		opt_md.h
84MD_ROOT_SIZE	opt_md.h
85NTIMECOUNTER	opt_ntp.h
86NSWAPDEV	opt_swap.h
87PPS_SYNC	opt_ntp.h
88QUOTA
89SPX_HACK
90SUIDDIR		opt_suiddir.h
91SYSVMSG		opt_sysvipc.h
92SYSVSEM		opt_sysvipc.h
93SYSVSHM		opt_sysvipc.h
94SHMALL		opt_sysvipc.h
95SHMMAX		opt_sysvipc.h
96SHMMAXPGS	opt_sysvipc.h
97SHMMIN		opt_sysvipc.h
98SHMMNI		opt_sysvipc.h
99SHMSEG		opt_sysvipc.h
100SEMMAP		opt_sysvipc.h
101SEMMNI		opt_sysvipc.h
102SEMMNS		opt_sysvipc.h
103SEMMNU		opt_sysvipc.h
104SEMMSL		opt_sysvipc.h
105SEMOPM		opt_sysvipc.h
106SEMUME		opt_sysvipc.h
107MSGMNB		opt_sysvipc.h
108MSGMNI		opt_sysvipc.h
109MSGSEG		opt_sysvipc.h
110MSGSSZ		opt_sysvipc.h
111MSGTQL		opt_sysvipc.h
112VFS_AIO
113
114# POSIX kernel options
115P1003_1B			opt_posix.h
116_KPOSIX_PRIORITY_SCHEDULING	opt_posix.h
117_KPOSIX_VERSION			opt_posix.h
118
119# TrustedBSD and POSIX.1e Kernel Options
120
121# Do we want the config file compiled into the kernel?
122INCLUDE_CONFIG_FILE	opt_config.h
123
124# Options for static filesystems.  These should only be used at config
125# time, since the corresponding lkms cannot work if there are any static
126# dependencies.  Unusability is enforced by hiding the defines for the
127# options in a never-included header.
128CD9660		opt_dontuse.h
129CODA		opt_dontuse.h
130EXT2FS		opt_dontuse.h
131FDESCFS		opt_dontuse.h
132LINPROCFS	opt_dontuse.h
133MSDOSFS		opt_dontuse.h
134NULLFS		opt_dontuse.h
135NWFS		opt_dontuse.h
136PORTALFS	opt_dontuse.h
137PROCFS		opt_dontuse.h
138PSEUDOFS	opt_dontuse.h
139UMAPFS		opt_dontuse.h
140NTFS		opt_dontuse.h
141HPFS		opt_dontuse.h
142UNIONFS		opt_dontuse.h
143UDF		opt_dontuse.h
144
145# Broken - ffs_snapshot() dependency from ufs_lookup() :-(
146FFS		opt_ffs_broken_fixme.h
147
148# These static filesystems has one slightly bogus static dependency in
149# sys/i386/i386/autoconf.c.  If any of these filesystems are
150# statically compiled into the kernel, code for mounting them as root
151# filesystems will be enabled - but look below.
152NFSCLIENT	opt_nfs.h
153NFSSERVER	opt_nfs.h
154
155# If you are following the conditions in the copyright,
156# you can enable soft-updates which will speed up a lot of thigs
157# and make the system safer from crashes at the same time.
158# otherwise a STUB module will be compiled in.
159SOFTUPDATES	opt_ffs.h
160
161# Enabling this option turns on support for Access Control Lists in UFS,
162# which can be used to support high security configurations.  Depends on
163# UFS_EXTATTR.
164UFS_ACL		opt_ufs.h
165
166# Enabling this option turns on support for extended attributes in UFS-based
167# filesystems, which can be used to support high security configurations
168# as well as new filesystem features.
169UFS_EXTATTR	opt_ufs.h
170UFS_EXTATTR_AUTOSTART	opt_ufs.h
171
172# Enable fast hash lookups for large directories on UFS-based filesystems.
173UFS_DIRHASH	opt_ufs.h
174
175# The above static dependencies are planned removed, with a
176# <filesystem>_ROOT option to control if it usable as root.  This list
177# allows these options to be present in config files already (though
178# they won't make any difference yet).
179NFS_ROOT	opt_nfsroot.h
180
181# Options used only in subr_param.c.
182HZ		opt_param.h
183MAXFILES	opt_param.h
184NBUF		opt_param.h
185NMBCLUSTERS	opt_param.h
186NSFBUFS		opt_param.h
187VM_BCACHE_SIZE_MAX	opt_param.h
188VM_SWZONE_SIZE_MAX	opt_param.h
189MAXUSERS
190DFLDSIZ		opt_param.h
191MAXDSIZ		opt_param.h
192MAXSSIZ		opt_param.h
193
194# Generic SCSI options.
195CAM_MAX_HIGHPOWER	opt_cam.h
196CAMDEBUG		opt_cam.h
197CAM_DEBUG_DELAY		opt_cam.h
198CAM_DEBUG_BUS		opt_cam.h
199CAM_DEBUG_TARGET	opt_cam.h
200CAM_DEBUG_LUN		opt_cam.h
201CAM_DEBUG_FLAGS		opt_cam.h
202CAM_NEW_TRAN_CODE	opt_cam.h
203SCSI_DELAY		opt_scsi.h
204SCSI_NO_SENSE_STRINGS	opt_scsi.h
205SCSI_NO_OP_STRINGS	opt_scsi.h
206
207
208
209# Options used only in cam/scsi/scsi_cd.c
210CHANGER_MIN_BUSY_SECONDS	opt_cd.h
211CHANGER_MAX_BUSY_SECONDS	opt_cd.h
212
213# Options used only in cam/scsi/scsi_sa.c.
214SA_IO_TIMEOUT		opt_sa.h
215SA_SPACE_TIMEOUT	opt_sa.h
216SA_REWIND_TIMEOUT	opt_sa.h
217SA_ERASE_TIMEOUT	opt_sa.h
218SA_1FM_AT_EOD		opt_sa.h
219
220# Options used only in cam/scsi/scsi_pt.c
221SCSI_PT_DEFAULT_TIMEOUT	opt_pt.h
222
223# Options used only in cam/scsi/scsi_ses.c
224SES_ENABLE_PASSTHROUGH	opt_ses.h
225
226# Options used in dev/sym/ (Symbios SCSI driver).
227SYM_SETUP_LP_PROBE_MAP	opt_sym.h	#-Low Priority Probe Map (bits)
228					# Allows the ncr to take precedence
229					# 1 (1<<0) -> 810a, 860
230					# 2 (1<<1) -> 825a, 875, 885, 895
231					# 4 (1<<2) -> 895a, 896, 1510d
232SYM_SETUP_SCSI_DIFF	opt_sym.h	#-HVD support for 825a, 875, 885
233					# disabled:0 (default), enabled:1
234SYM_SETUP_PCI_PARITY	opt_sym.h	#-PCI parity checking
235					# disabled:0, enabled:1 (default)
236SYM_SETUP_MAX_LUN	opt_sym.h	#-Number of LUNs supported
237					# default:8, range:[1..64]
238
239# Options used only in pci/ncr.c
240SCSI_NCR_DEBUG		opt_ncr.h
241SCSI_NCR_MAX_SYNC	opt_ncr.h
242SCSI_NCR_MAX_WIDE	opt_ncr.h
243SCSI_NCR_MYADDR		opt_ncr.h
244
245# Options used only in dev/isp/*
246ISP_TARGET_MODE		opt_isp.h
247ISP_FW_CRASH_DUMP	opt_isp.h
248
249# Options used in the 'ata' ATA/ATAPI driver
250ACD_DEBUG		opt_ata.h
251AST_DEBUG		opt_ata.h
252ATAPI_DEBUG		opt_ata.h
253ATA_DEBUG		opt_ata.h
254ATA_STATIC_ID		opt_ata.h
255DEV_ATADISK		opt_ata.h
256DEV_ATAPICD		opt_ata.h
257DEV_ATAPIST		opt_ata.h
258DEV_ATAPIFD		opt_ata.h
259
260# Net stuff.
261ACCEPT_FILTER_DATA
262ACCEPT_FILTER_HTTP
263BOOTP			opt_bootp.h
264BOOTP_COMPAT		opt_bootp.h
265BOOTP_NFSROOT		opt_bootp.h
266BOOTP_NFSV3		opt_bootp.h
267BOOTP_WIRED_TO		opt_bootp.h
268BRIDGE			opt_bdg.h
269ETHER_II		opt_ef.h
270ETHER_8023		opt_ef.h
271ETHER_8022		opt_ef.h
272ETHER_SNAP		opt_ef.h
273MROUTING		opt_mrouting.h
274INET			opt_inet.h
275INET6			opt_inet6.h
276IPSEC			opt_ipsec.h
277IPSEC_ESP		opt_ipsec.h
278IPSEC_DEBUG		opt_ipsec.h
279IPDIVERT
280DUMMYNET		opt_ipdn.h
281IPFILTER		opt_ipfilter.h
282IPFILTER_LOG		opt_ipfilter.h
283IPFILTER_DEFAULT_BLOCK	opt_ipfilter.h
284PFIL_HOOKS		opt_pfil_hooks.h
285IPFIREWALL		opt_ipfw.h
286IPFIREWALL_VERBOSE	opt_ipfw.h
287IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
288IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
289IPFIREWALL_FORWARD		opt_ipfw.h
290IPV6FIREWALL		opt_ip6fw.h
291IPV6FIREWALL_VERBOSE	opt_ip6fw.h
292IPV6FIREWALL_VERBOSE_LIMIT	opt_ip6fw.h
293IPV6FIREWALL_DEFAULT_TO_ACCEPT	opt_ip6fw.h
294IPSTEALTH
295IPX			opt_ipx.h
296IPXIP			opt_ipx.h
297IPTUNNEL		opt_ipx.h
298LIBMCHAIN
299NCP			opt_ncp.h
300NETATALK		opt_atalk.h
301PPP_BSDCOMP		opt_ppp.h
302PPP_DEFLATE		opt_ppp.h
303PPP_FILTER		opt_ppp.h
304RANDOM_IP_ID
305SLIP_IFF_OPTS		opt_slip.h
306TCPDEBUG
307TCP_DROP_SYNFIN		opt_tcp_input.h
308XBONEHACK
309
310# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
311# Each netgraph node type can be either be compiled into the kernel
312# or loaded dynamically. To get the former, include the corresponding
313# option below. Each type has its own man page, e.g. ng_async(4).
314NETGRAPH
315NETGRAPH_ASYNC		opt_netgraph.h
316NETGRAPH_BPF		opt_netgraph.h
317NETGRAPH_BRIDGE		opt_netgraph.h
318NETGRAPH_CISCO		opt_netgraph.h
319NETGRAPH_ECHO		opt_netgraph.h
320NETGRAPH_ETHER		opt_netgraph.h
321NETGRAPH_FRAME_RELAY	opt_netgraph.h
322NETGRAPH_GIF		opt_netgraph.h
323NETGRAPH_GIF_DEMUX	opt_netgraph.h
324NETGRAPH_HOLE		opt_netgraph.h
325NETGRAPH_IFACE		opt_netgraph.h
326NETGRAPH_IP_INPUT	opt_netgraph.h
327NETGRAPH_KSOCKET	opt_netgraph.h
328NETGRAPH_LMI		opt_netgraph.h
329# MPPC compression requires proprietary files (not included)
330NETGRAPH_MPPC_COMPRESSION	opt_netgraph.h
331NETGRAPH_MPPC_ENCRYPTION	opt_netgraph.h
332NETGRAPH_ONE2MANY	opt_netgraph.h
333NETGRAPH_PPP		opt_netgraph.h
334NETGRAPH_PPPOE		opt_netgraph.h
335NETGRAPH_PPTPGRE	opt_netgraph.h
336NETGRAPH_RFC1490	opt_netgraph.h
337NETGRAPH_SOCKET		opt_netgraph.h
338NETGRAPH_SPLIT		opt_netgraph.h
339NETGRAPH_TEE		opt_netgraph.h
340NETGRAPH_TTY		opt_netgraph.h
341NETGRAPH_UI		opt_netgraph.h
342NETGRAPH_VJC		opt_netgraph.h
343
344# DRM options
345DRM_LINUX		opt_drm.h
346DRM_DEBUG		opt_drm.h
347
348# ATM (HARP version)
349ATM_CORE		opt_atm.h
350ATM_IP			opt_atm.h
351ATM_SIGPVC		opt_atm.h
352ATM_SPANS		opt_atm.h
353ATM_UNI			opt_atm.h
354
355# XXX Conflict: # of devices vs network protocol (Native ATM).
356# This makes "atm.h" unusable.
357NATM			opt_natm.h
358
359DPT_ALLOW_MEMIO		opt_dpt.h	# Allow PCI devices to use memory
360					# mapped I/O
361# DPT driver debug flags
362DPT_MEASURE_PERFORMANCE	opt_dpt.h
363DPT_HANDLE_TIMEOUTS	opt_dpt.h
364DPT_TIMEOUT_FACTOR	opt_dpt.h
365DPT_LOST_IRQ		opt_dpt.h
366DPT_RESET_HBA		opt_dpt.h
367
368# Adaptec ASR and DPT V/VI controller options
369ASR_MEASURE_PERFORMANCE	opt_asr.h
370
371# Misc debug flags.  Most of these should probably be replaced with
372# 'DEBUG', and then let people recompile just the interesting modules
373# with 'make CC="cc -DDEBUG"'.
374CLUSTERDEBUG		opt_debug_cluster.h
375DEBUG_1284		opt_ppb_1284.h
376VP0_DEBUG		opt_vpo.h
377LPT_DEBUG		opt_lpt.h
378PLIP_DEBUG		opt_plip.h
379LOCKF_DEBUG		opt_debug_lockf.h
380NPX_DEBUG		opt_debug_npx.h
381NETATALKDEBUG		opt_atalk.h
382SI_DEBUG		opt_debug_si.h
383
384# Fb options
385FB_DEBUG		opt_fb.h
386FB_INSTALL_CDEV		opt_fb.h
387
388# ppbus related options
389PERIPH_1284		opt_ppb_1284.h
390DONTPROBE_1284		opt_ppb_1284.h
391
392# smbus related options
393ENABLE_ALART		opt_intpm.h
394
395# These cause changes all over the kernel
396BLKDEV_IOSIZE		opt_global.h
397DEBUG			opt_global.h
398DEBUG_LOCKS		opt_global.h
399DEBUG_VFS_LOCKS		opt_global.h
400LOOKUP_SHARED		opt_global.h
401DIAGNOSTIC		opt_global.h
402ENABLE_VFS_IOOPT	opt_global.h
403INVARIANT_SUPPORT	opt_global.h
404INVARIANTS		opt_global.h
405REGRESSION		opt_global.h
406RESTARTABLE_PANICS	opt_global.h
407VFS_BIO_DEBUG		opt_global.h
408
409# These are VM related options
410VM_KMEM_SIZE		opt_vm.h
411VM_KMEM_SIZE_SCALE	opt_vm.h
412VM_KMEM_SIZE_MAX	opt_vm.h
413NO_SWAPPING		opt_vm.h
414MALLOC_PROFILE		opt_vm.h
415PQ_NOOPT		opt_vmpage.h
416PQ_NORMALCACHE		opt_vmpage.h
417PQ_MEDIUMCACHE		opt_vmpage.h
418PQ_LARGECACHE		opt_vmpage.h
419PQ_HUGECACHE		opt_vmpage.h
420PQ_CACHESIZE		opt_vmpage.h
421
422# Standard SMP options
423SMP			opt_global.h
424
425# Size of the kernel message buffer
426MSGBUF_SIZE		opt_msgbuf.h
427
428# PCI related options
429PCI_ENABLE_IO_MODES	opt_pci.h
430PCI_ALLOW_UNSUPPORTED_IO_RANGE	opt_pci.h
431
432# NFS options
433NFS_MINATTRTIMO		opt_nfs.h
434NFS_MAXATTRTIMO		opt_nfs.h
435NFS_MINDIRATTRTIMO	opt_nfs.h
436NFS_MAXDIRATTRTIMO	opt_nfs.h
437NFS_GATHERDELAY		opt_nfs.h
438NFS_WDELAYHASHSIZ	opt_nfs.h
439NFS_DEBUG		opt_nfs.h
440
441# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
442OVERRIDE_CARD			opt_bktr.h
443OVERRIDE_TUNER			opt_bktr.h
444OVERRIDE_DBX			opt_bktr.h
445OVERRIDE_MSP			opt_bktr.h
446BROOKTREE_SYSTEM_DEFAULT	opt_bktr.h
447BROOKTREE_ALLOC_PAGES		opt_bktr.h
448BKTR_OVERRIDE_CARD		opt_bktr.h
449BKTR_OVERRIDE_TUNER		opt_bktr.h
450BKTR_OVERRIDE_DBX		opt_bktr.h
451BKTR_OVERRIDE_MSP		opt_bktr.h
452BKTR_SYSTEM_DEFAULT		opt_bktr.h
453BKTR_ALLOC_PAGES		opt_bktr.h
454BKTR_USE_PLL			opt_bktr.h
455BKTR_GPIO_ACCESS		opt_bktr.h
456BKTR_NO_MSP_RESET		opt_bktr.h
457BKTR_430_FX_MODE		opt_bktr.h
458BKTR_SIS_VIA_MODE		opt_bktr.h
459BKTR_USE_FREEBSD_SMBUS		opt_bktr.h
460
461# meteor opt_meteor.h
462METEOR_ALLOC_PAGES	opt_meteor.h
463METEOR_TEST_VIDEO	opt_meteor.h
464METEOR_SYSTEM_DEFAULT	opt_meteor.h
465METEOR_DEALLOC_PAGES	opt_meteor.h
466METEOR_DEALLOC_ABOVE	opt_meteor.h
467
468# Various mi ISA bus flags
469COM_ESP			opt_sio.h
470COM_MULTIPORT		opt_sio.h
471BREAK_TO_DEBUGGER	opt_comconsole.h
472ALT_BREAK_TO_DEBUGGER	opt_comconsole.h
473DEV_ISA			opt_isa.h
474
475# Include tweaks for running under the SimOS machine simulator.
476SIMOS			opt_simos.h
477
478# options for bus/device framework
479BUS_DEBUG		opt_bus.h
480
481# options for USB support
482UHCI_DEBUG		opt_usb.h
483OHCI_DEBUG		opt_usb.h
484USB_DEBUG		opt_usb.h
485UGEN_DEBUG		opt_usb.h
486UHID_DEBUG		opt_usb.h
487UHUB_DEBUG		opt_usb.h
488UKBD_DEBUG		opt_usb.h
489ULPT_DEBUG		opt_usb.h
490UMASS_DEBUG		opt_usb.h
491UMS_DEBUG		opt_usb.h
492URIO_DEBUG		opt_usb.h
493UKBD_DFLT_KEYMAP	opt_ukbd.h
494
495# Vinum options
496VINUMDEBUG		opt_vinum.h
497
498# Embedded system options
499INIT_PATH		opt_init_path.h
500
501ROOTDEVNAME		opt_rootdevname.h
502
503FDC_DEBUG		opt_fdc.h
504PCFCLOCK_VERBOSE	opt_pcfclock.h
505PCFCLOCK_MAX_RETRIES	opt_pcfclock.h
506TDFX_LINUX opt_tdfx.h
507
508KTR			opt_global.h
509KTR_MASK		opt_ktr.h
510KTR_CPUMASK		opt_ktr.h
511KTR_COMPILE		opt_global.h
512KTR_ENTRIES		opt_global.h
513KTR_VERBOSE		opt_ktr.h
514MUTEX_DEBUG		opt_global.h
515WITNESS			opt_global.h
516WITNESS_DDB		opt_witness.h
517WITNESS_SKIPSPIN	opt_witness.h
518
519# options for ACPI support
520ACPI_DEBUG		opt_acpi.h
521ACPI_NO_SEMAPHORES	opt_acpi.h
522ACPI_MAX_THREADS	opt_acpi.h
523
524# options for DEVFS, see sys/fs/devfs/devfs.h
525NDEVFSINO		opt_devfs.h
526NDEVFSOVERFLOW		opt_devfs.h
527
528# various 'device presence' options.
529DEV_MCA			opt_mca.h
530DEV_BPF			opt_bpf.h
531
532# ed driver
533ED_NO_MIIBUS		opt_ed.h
534
535# Polling device handling
536DEVICE_POLLING		opt_global.h
537
538# Mutex profiling
539MUTEX_PROFILING		opt_global.h
540