(no commit message)
[ikiwiki.git] / docs / handbook / handbook-kernelconfig-config.mdwn
1 ## The Configuration File \r
2 The general format of a configuration file is quite simple. Each line contains a keyword and one or more arguments. For simplicity, most lines only contain one argument. Anything following a `#` is considered a comment and ignored. The following sections describe each keyword, generally in the order they are listed in `GENERIC`, although some related keywords have been grouped together in a single section (such as Networking) even though they are actually scattered throughout the `GENERIC` file.  An exhaustive list of options and more detailed explanations of the device lines is present in the `LINT` configuration file, located in the same directory as `GENERIC`. If you are in doubt as to the purpose or necessity of a line, check first in `LINT`.\r
3 \r
4 The following is an example `GENERIC` kernel configuration file with various additional comments where needed for clarity. This example should match your copy in `/usr/src/sys/config/GENERIC` fairly closely. For details of all the possible kernel options, see `/usr/src/sys/config/LINT`.\r
5 \r
6     \r
7     #\r
8     #\r
9     # GENERIC -- Generic kernel configuration file for DragonFly/i386\r
10     #\r
11     # Check the LINT configuration file in sys/config, for an\r
12     # exhaustive list of options.\r
13     #\r
14     # $DragonFly: src/sys/config/GENERIC,v 1.56 2007/12/26 14:02:36 sephe Exp $\r
15 \r
16 The following are the mandatory keywords required in ***every*** kernel you build:\r
17 \r
18     \r
19     machine         i386\r
20 \r
21 This is the machine architecture. It must be `i386` at the moment.  Support for `amd64` will be added in the future.\r
22 \r
23     \r
24     cpu          I386_CPU\r
25     cpu          I486_CPU\r
26     cpu          I586_CPU\r
27     cpu          I686_CPU\r
28 \r
29 The above option specifies the type of CPU you have in your system. You may have multiple instances of the CPU line (i.e., you are not sure whether you should use `I586_CPU` or `I686_CPU`), however, for a custom kernel, it is best to specify only the CPU you have. If you are unsure of your CPU type, you can check the `/var/run/dmesg.boot` file to view your boot up messages.\r
30 \r
31     \r
32     ident          GENERIC\r
33 \r
34 This is the identification of the kernel. You should change this to whatever you named your kernel, i.e. `MYKERNEL` if you have followed the instructions of the previous examples. The value you put in the `ident` string will print when you boot up the kernel, so it is useful to give the new kernel a different name if you want to keep it separate from your usual kernel (i.e. you want to build an experimental kernel).\r
35 \r
36     \r
37     maxusers          0\r
38 \r
39 The `maxusers` option sets the size of a number of important system tables. This number is supposed to be roughly equal to the number of simultaneous users you expect to have on your machine.\r
40 \r
41 (Recommended) The system will auto-tune this setting for you if you explicitly set it to `0`[(1)](#FTN.AEN7414). If you want to manage it yourself you will want to set `maxusers` to at least 4, especially if you are using the X Window System or compiling software. The reason is that the most important table set by `maxusers` is the maximum number of processes, which is set to `20 + 16 * maxusers`, so if you set `maxusers` to 1, then you can only have 36 simultaneous processes, including the 18 or so that the system starts up at boot time, and the 15 or so you will probably create when you start the X Window System. Even a simple task like reading a manual page will start up nine processes to filter, decompress, and view it. Setting `maxusers` to 64 will allow you to have up to 1044 simultaneous processes, which should be enough for nearly all uses. If, however, you see the dreaded proc table full error when trying to start another program, or are running a server with a large number of simultaneous users, you can always increase the number and rebuild.\r
42 \r
43  **Note:** `maxusers` does ***not*** limit the number of users which can log into your machine. It simply sets various table sizes to reasonable values considering the maximum number of users you will likely have on your system and how many processes each of them will be running. One keyword which ***does*** limit the number of simultaneous ***remote logins and X terminal windows*** is [kernelconfig-config.html#KERNELCONFIG-PTYS `pseudo-device pty 16`].\r
44 \r
45     \r
46     # Floating point support - do not disable.\r
47     device          npx0     at nexus? port IO_NPX irq 13\r
48 \r
49 `npx0` is the interface to the floating point math unit in DragonFly, which is either the hardware co-processor or the software math emulator. This is ***not*** optional.\r
50 \r
51     \r
52     # Pseudo devices - the number indicates how many units to allocate.\r
53     pseudo-device   loop          # Network loopback\r
54 \r
55 This is the generic loopback device for TCP/IP. If you telnet or FTP to `localhost` (a.k.a., `127.0.0.1`) it will come back at you through this device. This is ***mandatory***.\r
56 \r
57 Everything that follows is more or less optional. See the notes underneath or next to each option for more information.\r
58 \r
59     \r
60     #makeoptions     DEBUG=-g          #Build kernel with gdb(1) debug symbols\r
61 \r
62 The normal build process of the DragonFly does not include debugging information when building the kernel and strips most symbols after the resulting kernel is linked, to save some space at the install location. If you are going to do tests of kernels in the DEVELOPMENT branch or develop changes of your own for the DragonFly kernel, you might want to uncomment this line. It will enable the use of the `-g` option which enables debugging information when passed to [gcc(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#gcc&section1).\r
63 \r
64     \r
65     options          MATH_EMULATE      #Support for x87 emulation\r
66 \r
67 This line allows the kernel to simulate a math co-processor if your computer does not have one (386 or 486SX). If you have a 486DX, or a 386 or 486SX (with a separate 387 or 487 chip), or higher (Pentium®, Pentium II, etc.), you can comment this line out.\r
68 \r
69  **Note:** The normal math co-processor emulation routines that come with DragonFly are ***not*** very accurate. If you do not have a math co-processor, and you need the best accuracy, it is recommended that you change this option to `GPL_MATH_EMULATE` to use the GNU math support, which is not included by default for licensing reasons.\r
70 \r
71     \r
72     options          INET          #InterNETworking\r
73 \r
74 Networking support. Leave this in, even if you do not plan to be connected to a network. Most programs require at least loopback networking (i.e., making network connections within your PC), so this is essentially mandatory.\r
75 \r
76     \r
77     options          INET6          #IPv6 communications protocols\r
78 \r
79 This enables the IPv6 communication protocols.\r
80 \r
81     \r
82     options          FFS          #Berkeley Fast Filesystem\r
83     options          FFS_ROOT     #FFS usable as root device [keep this!]\r
84 \r
85 This is the basic hard drive Filesystem. Leave it in if you boot from the hard disk.\r
86 \r
87     \r
88     options          UFS_DIRHASH  #Improve performance on big directories\r
89 \r
90 This option includes functionality to speed up disk operations on large directories, at the expense of using additional memory. You would normally keep this for a large server, or interactive workstation, and remove it if you are using DragonFly on a smaller system where memory is at a premium and disk access speed is less important, such as a firewall.\r
91 \r
92     \r
93     options          SOFTUPDATES  #Enable FFS Soft Updates support\r
94 \r
95 This option enables Soft Updates in the kernel, this will help speed up write access on the disks. Even when this functionality is provided by the kernel, it must be turned on for specific disks. Review the output from [mount(8)](http://leaf.dragonflybsd.org/cgi/web-man?command#mount&section8) to see if Soft Updates is enabled for your system disks. If you do not see the `soft-updates` option then you will need to activate it using the [tunefs(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=tunefs&section=8) (for existing filesystems) or [newfs(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=newfs&section=8) (for new filesystems) commands.\r
96 \r
97     \r
98     options          MFS          #Memory Filesystem\r
99     options          MD_ROOT      #MD is a potential root device\r
100 \r
101 This is the memory-mapped filesystem. This is basically a RAM disk for fast storage of temporary files, useful if you have a lot of swap space that you want to take advantage of. A perfect place to mount an MFS partition is on the `/tmp` directory, since many programs store temporary data here. To mount an MFS RAM disk on `/tmp`, add the following line to `/etc/fstab`:\r
102 \r
103     \r
104     /dev/ad1s2b     /tmp mfs rw 0 0\r
105 \r
106 Now you simply need to either reboot, or run the command `mount /tmp`.\r
107 \r
108     \r
109     options          NFS          #Network Filesystem\r
110     options          NFS_ROOT     #NFS usable as root device, NFS required\r
111 \r
112 The network Filesystem. Unless you plan to mount partitions from a UNIX® file server over TCP/IP, you can comment these out.\r
113 \r
114     \r
115     options          MSDOSFS      #MSDOS Filesystem\r
116 \r
117 The MS-DOS® Filesystem. Unless you plan to mount a DOS formatted hard drive partition at boot time, you can safely comment this out. It will be automatically loaded the first time you mount a DOS partition, as described above. Also, the excellent ***mtools*** software (in pkgsrc®) allows you to access DOS floppies without having to mount and unmount them (and does not require `MSDOSFS` at all).\r
118 \r
119     \r
120     options          CD9660       #ISO 9660 Filesystem\r
121     options          CD9660_ROOT  #CD-ROM usable as root, CD9660 required\r
122 \r
123 The ISO 9660 Filesystem for CDROMs. Comment it out if you do not have a CDROM drive or only mount data CDs occasionally (since it will be dynamically loaded the first time you mount a data CD). Audio CDs do not need this Filesystem.\r
124 \r
125     \r
126     options          PROCFS       #Process filesystem\r
127 \r
128 The process filesystem. This is a ***pretend*** filesystem mounted on `/proc` which allows programs like [ps(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#ps&section1) to give you more information on what processes are running. ***\r
129 \r
130     \r
131 \r
132 Compatibility with 4.3BSD. Leave this in; some programs will act strangely if you comment this out.\r
133 \r
134     \r
135     options          SCSI_DELAY=5000    #Delay (in ms) before probing SCSI\r
136 \r
137 This causes the kernel to pause for 15 seconds before probing each SCSI device in your system. If you only have IDE hard drives, you can ignore this, otherwise you will probably want to lower this number, perhaps to five seconds (5000 ms), to speed up booting. Of course, if you do this, and DragonFly has trouble recognizing your SCSI devices, you will have to raise it back up.\r
138 \r
139     \r
140     options          UCONSOLE            #Allow users to grab the console\r
141 \r
142 Allow users to grab the console, which is useful for X users. For example, you can create a console ***xterm*** by typing `xterm -C`, which will display any [write(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#write&section1), [talk(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=talk&section=1), and any other messages you receive, as well as any console messages sent by the kernel.\r
143 \r
144     \r
145     options          USERCONFIG          #boot -c editor\r
146 \r
147 This option allows you to boot the configuration editor from the boot menu.\r
148 \r
149     \r
150     options          VISUAL_USERCONFIG   #visual boot -c editor\r
151 \r
152 This option allows you to boot the visual configuration editor from the boot menu.\r
153 \r
154     \r
155     options          KTRACE              #ktrace(1) support\r
156 \r
157 This enables kernel process tracing, which is useful in debugging.\r
158 \r
159     \r
160     options          SYSVSHM             #SYSV-style shared memory\r
161 \r
162 This option provides for System V shared memory. The most common use of this is the XSHM extension in X, which many graphics-intensive programs will automatically take advantage of for extra speed. If you use X, you will definitely want to include this.\r
163 \r
164     \r
165     options          SYSVSEM             #SYSV-style semaphores\r
166 \r
167 Support for System V semaphores. Less commonly used but only adds a few hundred bytes to the kernel.\r
168 \r
169     \r
170     options          SYSVMSG             #SYSV-style message queues\r
171 \r
172 Support for System V messages. Again, only adds a few hundred bytes to the kernel.\r
173 \r
174  **Note:** The [ipcs(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#ipcs&section1) command will list any processes using each of these System V facilities.\r
175 \r
176     \r
177     options         P1003_1B                #Posix P1003_1B real-time extensions\r
178     options         _KPOSIX_PRIORITY_SCHEDULING\r
179 \r
180 Real-time extensions added in the 1993 POSIX®. Certain applications in the ports collection use these (such as  **StarOffice™** ).\r
181 \r
182     \r
183     options         ICMP_BANDLIM            #Rate limit bad replies\r
184 \r
185 This option enables ICMP error response bandwidth limiting. You typically want this option as it will help protect the machine from denial of service packet attacks.\r
186 \r
187     \r
188     # To make an SMP kernel, the next two are needed\r
189     #options        SMP                     # Symmetric MultiProcessor Kernel\r
190     #options        APIC_IO                 # Symmetric (APIC) I/O\r
191 \r
192 The above are both required for SMP support.\r
193 \r
194     \r
195     device          isa\r
196 \r
197 All PCs supported by DragonFly have one of these. Do not remove, even if you have no ISA slots. If you have an IBM PS/2 (Micro Channel Architecture), DragonFly provides some limited support at this time. For more information about the MCA support, see `/usr/src/sys/config/LINT`.\r
198 \r
199     \r
200     device          eisa\r
201 \r
202 Include this if you have an EISA motherboard. This enables auto-detection and configuration support for all devices on the EISA bus.\r
203 \r
204     \r
205     device          pci\r
206 \r
207 Include this if you have a PCI motherboard. This enables auto-detection of PCI cards and gatewaying from the PCI to ISA bus.\r
208 \r
209     \r
210     device          agp\r
211 \r
212 Include this if you have an AGP card in the system. This will enable support for AGP, and AGP GART for boards which have these features.\r
213 \r
214     \r
215     # Floppy drives\r
216     device          fdc0        at isa? port IO_FD1 irq 6 drq 2\r
217     device          fd0         at fdc0 drive 0\r
218     device          fd1         at fdc0 drive 1\r
219 \r
220 This is the floppy drive controller. `fd0` is the `A:` floppy drive, and `fd1` is the `B:` drive.\r
221 \r
222     \r
223     device          ata\r
224 \r
225 This driver supports all ATA and ATAPI devices. You only need one `device ata` line for the kernel to detect all PCI ATA/ATAPI devices on modern machines.\r
226 \r
227     \r
228     device          atadisk                 # ATA disk drives\r
229 \r
230 This is needed along with `device ata` for ATA disk drives.\r
231 \r
232     \r
233     device          atapicd                 # ATAPI CDROM drives\r
234 \r
235 This is needed along with `device ata` for ATAPI CDROM drives.\r
236 \r
237     \r
238     device          atapifd                 # ATAPI floppy drives\r
239 \r
240 This is needed along with `device ata` for ATAPI floppy drives.\r
241 \r
242     \r
243     device          atapist                 # ATAPI tape drives\r
244 \r
245 This is needed along with `device ata` for ATAPI tape drives.\r
246 \r
247     \r
248     options         ATA_STATIC_ID           #Static device numbering\r
249 \r
250 This makes the controller number static (like the old driver) or else the device numbers are dynamically allocated.\r
251 \r
252     \r
253     # ATA and ATAPI devices\r
254     device          ata0        at isa? port IO_WD1 irq 14\r
255     device          ata1        at isa? port IO_WD2 irq 15\r
256 \r
257 Use the above for older, non-PCI systems.\r
258 \r
259     \r
260     # SCSI Controllers\r
261     device          ahb        # EISA AHA1742 family\r
262     device          ahc        # AHA2940 and onboard AIC7xxx devices\r
263     device          amd        # AMD 53C974 (Teckram DC-390(T))\r
264     device          dpt        # DPT Smartcache - See LINT for options!\r
265     device          isp        # Qlogic family\r
266     device          ncr        # NCR/Symbios Logic\r
267     device          sym        # NCR/Symbios Logic (newer chipsets)\r
268     device          adv0       at isa?\r
269     device          adw\r
270     device          bt0        at isa?\r
271     device          aha0       at isa?\r
272     device          aic0       at isa?\r
273 \r
274 SCSI controllers. Comment out any you do not have in your system. If you have an IDE only system, you can remove these altogether.\r
275 \r
276     \r
277     # SCSI peripherals\r
278     device          scbus      # SCSI bus (required)\r
279     device          da         # Direct Access (disks)\r
280     device          sa         # Sequential Access (tape etc)\r
281     device          cd         # CD\r
282     device          pass       # Passthrough device (direct SCSI\r
283     access)\r
284 \r
285 SCSI peripherals. Again, comment out any you do not have, or if you have only IDE hardware, you can remove them completely.\r
286 \r
287  **Note:** The USB [umass(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#umass&section4) driver (and a few other drivers) use the SCSI subsystem even though they are not real SCSI devices. Therefore make sure not to remove SCSI support, if any such drivers are included in the kernel configuration.\r
288 \r
289     \r
290     # RAID controllers\r
291     device          ida        # Compaq Smart RAID\r
292     device          amr        # AMI MegaRAID\r
293     device          mlx        # Mylex DAC960 family\r
294 \r
295 Supported RAID controllers. If you do not have any of these, you can comment them out or remove them.\r
296 \r
297     \r
298     # atkbdc0 controls both the keyboard and the PS/2 mouse\r
299     device          atkbdc0    at isa? port IO_KBD\r
300 \r
301 The keyboard controller (`atkbdc`) provides I/O services for the AT keyboard and PS/2 style pointing devices. This controller is required by the keyboard driver (`atkbd`) and the PS/2 pointing device driver (`psm`).\r
302 \r
303     \r
304     device          atkbd0     at atkbdc? irq 1\r
305 \r
306 The `atkbd` driver, together with `atkbdc` controller, provides access to the AT 84 keyboard or the AT enhanced keyboard which is connected to the AT keyboard controller.\r
307 \r
308     \r
309     device          psm0       at atkbdc? irq 12\r
310 \r
311 Use this device if your mouse plugs into the PS/2 mouse port.\r
312 \r
313     \r
314     device          vga0        at isa?\r
315 \r
316 The video card driver.\r
317 \r
318     \r
319     # splash screen/screen saver\r
320     pseudo-device          splash\r
321 \r
322 Splash screen at start up! Screen savers require this too.\r
323 \r
324     \r
325     # syscons is the default console driver, resembling an SCO console\r
326     device          sc0          at isa?\r
327 \r
328 `sc0` is the default console driver, which resembles a SCO console. Since most full-screen programs access the console through a terminal database library like `termcap`, it should not matter whether you use this or `vt0`, the `VT220` compatible console driver. When you log in, set your `TERM` variable to `scoansi` if full-screen programs have trouble running under this console.\r
329 \r
330     \r
331     # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver\r
332     #device          vt0     at isa?\r
333     #options         XSERVER          # support for X server on a vt console\r
334     #options         FAT_CURSOR       # start with block cursor\r
335     # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines\r
336     #options         PCVT_SCANSET=2   # IBM keyboards are non-std\r
337 \r
338 This is a VT220-compatible console driver, backward compatible to VT100/102. It works well on some laptops which have hardware incompatibilities with `sc0`. Also set your `TERM` variable to `vt100` or `vt220` when you log in. This driver might also prove useful when connecting to a large number of different machines over the network, where `termcap` or `terminfo` entries for the `sc0` device are often not available -- `vt100` should be available on virtually any platform.\r
339 \r
340     \r
341     # Power management support (see LINT for more options)\r
342     device          apm0     at nexus? disable flags 0x20  # Advanced Power Management\r
343 \r
344 Advanced Power Management support. Useful for laptops.\r
345 \r
346     \r
347     # PCCARD (PCMCIA) support\r
348     device          card\r
349     device          pcic0    at isa? irq 10 port 0x3e0 iomem 0xd0000\r
350     device          pcic1    at isa? irq 11 port 0x3e2 iomem 0xd4000 disable\r
351 \r
352 PCMCIA support. You want this if you are using a laptop.\r
353 \r
354     \r
355     # Serial (COM) ports\r
356     device          sio0     at isa? port IO_COM1 flags 0x10 irq 4\r
357     device          sio1     at isa? port IO_COM2 irq 3\r
358     device          sio2     at isa? disable port IO_COM3 irq 5\r
359     device          sio3     at isa? disable port IO_COM4 irq 9\r
360 \r
361 These are the four serial ports referred to as COM1 through COM4 in the MS-DOS/Windows® world.\r
362 \r
363  **Note:** If you have an internal modem on COM4 and a serial port at COM2, you will have to change the IRQ of the modem to 2 (for obscure technical reasons, IRQ2 # IRQ 9) in order to access it from DragonFly. If you have a multiport serial card, check the manual page for [sio(4)](http://leaf.dragonflybsd.org/cgi/web-man?commandsio&section=4) for more information on the proper values for these lines. Some video cards (notably those based on S3 chips) use IO addresses in the form of `0x*2e8`, and since many cheap serial cards do not fully decode the 16-bit IO address space, they clash with these cards making the COM4 port practically unavailable.\r
364 \r
365 Each serial port is required to have a unique IRQ (unless you are using one of the multiport cards where shared interrupts are supported), so the default IRQs for COM3 and COM4 cannot be used.\r
366 \r
367     \r
368     # Parallel port\r
369     device          ppc0    at isa? irq 7\r
370 \r
371 This is the ISA-bus parallel port interface.\r
372 \r
373     \r
374     device          ppbus      # Parallel port bus (required)\r
375 \r
376 Provides support for the parallel port bus.\r
377 \r
378     \r
379     device          lpt        # Printer\r
380 \r
381 Support for parallel port printers.\r
382 \r
383  **Note:** All three of the above are required to enable parallel printer support.\r
384 \r
385     \r
386     device          plip       # TCP/IP over parallel\r
387 \r
388 This is the driver for the parallel network interface.\r
389 \r
390     \r
391     device          ppi        # Parallel port interface device\r
392 \r
393 The general-purpose I/O (***geek port) + IEEE1284 I/O.\r
394 \r
395     \r
396     #device         vpo        # Requires scbus and da\r
397 \r
398 This is for an Iomega Zip drive. It requires `scbus` and `da` support. Best performance is achieved with ports in EPP 1.9 mode.\r
399 \r
400     \r
401     # PCI Ethernet NICs.\r
402     device          de         # DEC/Intel DC21x4x (Tulip)\r
403     device          fxp        # Intel EtherExpress PRO/100B (82557, 82558)\r
404     device          tx         # SMC 9432TX (83c170 EPIC)\r
405     device          vx         # 3Com 3c590, 3c595 (Vortex)\r
406     device          wx         # Intel Gigabit Ethernet Card (Wiseman)\r
407 \r
408 Various PCI network card drivers. Comment out or remove any of these not present in your system.\r
409 \r
410     \r
411     # PCI Ethernet NICs that use the common MII bus controller code.\r
412     device          miibus     # MII bus support\r
413 \r
414 MII bus support is required for some PCI 10/100 Ethernet NICs, namely those which use MII-compliant transceivers or implement transceiver control interfaces that operate like an MII. Adding `device miibus` to the kernel config pulls in support for the generic miibus API and all of the PHY drivers, including a generic one for PHYs that are not specifically handled by an individual driver.\r
415 \r
416     \r
417     device          dc         # DEC/Intel 21143 and various workalikes\r
418     device          rl         # RealTek 8129/8139\r
419     device          sf         # Adaptec AIC-6915 (Starfire)\r
420     device          sis        # Silicon Integrated Systems SiS 900/SiS 7016\r
421     device          ste        # Sundance ST201 (D-Link DFE-550TX)\r
422     device          tl         # Texas Instruments ThunderLAN\r
423     device          vr         # VIA Rhine, Rhine II\r
424     device          wb         # Winbond W89C840F\r
425     device          xl         # 3Com 3c90x (Boomerang, Cyclone)\r
426 \r
427 Drivers that use the MII bus controller code.\r
428 \r
429     \r
430     # ISA Ethernet NICs.\r
431     device          ed0    at isa? port 0x280 irq 10 iomem 0xd8000\r
432     device          ex\r
433     device          ep\r
434     # WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really\r
435     # exists only as a PCMCIA device, so there is no ISA attachment needed\r
436     # and resources will always be dynamically assigned by the pccard code.\r
437     device          wi\r
438     # Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will\r
439     # work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP\r
440     # mode (the factory default). If you set the switches on your ISA\r
441     # card for a manually chosen I/O address and IRQ, you must specify\r
442     # those parameters here.\r
443     device          an\r
444     # The probe order of these is presently determined by i386/isa/isa_compat.c.\r
445     device          ie0    at isa? port 0x300 irq 10 iomem 0xd0000\r
446     device          fe0    at isa? port 0x300\r
447     device          le0    at isa? port 0x300 irq 5 iomem 0xd0000\r
448     device          lnc0   at isa? port 0x280 irq 10 drq 0\r
449     device          cs0    at isa? port 0x300\r
450     device          sn0    at isa? port 0x300 irq 10\r
451     # requires PCCARD (PCMCIA) support to be activated\r
452     #device         xe0    at isa?\r
453 \r
454 ISA Ethernet drivers. See `/usr/src/sys/config/LINT` for which cards are supported by which driver.\r
455 \r
456     \r
457     pseudo-device   ether         # Ethernet support\r
458 \r
459 `ether` is only needed if you have an Ethernet card. It includes generic Ethernet protocol code.\r
460 \r
461     \r
462     pseudo-device   sl      1     # Kernel SLIP\r
463 \r
464 `sl` is for SLIP support. This has been almost entirely supplanted by PPP, which is easier to set up, better suited for modem-to-modem connection, and more powerful. The ***number*** after `sl` specifies how many simultaneous SLIP sessions to support.\r
465 \r
466     \r
467     pseudo-device   ppp     1     # Kernel PPP\r
468 \r
469 This is for kernel PPP support for dial-up connections. There is also a version of PPP implemented as a userland application that uses `tun` and offers more flexibility and features such as demand dialing. The ***number*** after `ppp` specifies how many simultaneous PPP connections to support. .\r
470 \r
471     \r
472     device   tun           # Packet tunnel.\r
473 \r
474 This is used by the userland PPP software. A ***number*** after `tun` specifies the number of simultaneous PPP sessions to support. See the [userppp.html PPP] section of this book for more information.\r
475 \r
476     \r
477     pseudo-device   pty           # Pseudo-ttys (telnet etc)\r
478 \r
479 This is a ***pseudo-terminal*** or simulated login port. It is used by incoming `telnet` and `rlogin` sessions, ***xterm***, and some other applications such as ***Emacs***. The ***number*** after `pty` indicates the number of `pty`s to create. If you need more than the default of 16 simultaneous ***xterm*** windows and/or remote logins, be sure to increase this number accordingly, up to a maximum of 256. ***\r
480 \r
481     \r
482 \r
483 Memory disk pseudo-devices.\r
484 \r
485     \r
486     pseudo-device   gif     # IPv6 and IPv4 tunneling\r
487 \r
488 This implements IPv6 over IPv4 tunneling, IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling, and IPv6 over IPv6 tunneling.\r
489 \r
490     \r
491     pseudo-device   faith   # IPv6-to-IPv4 relaying (translation)\r
492 \r
493 This pseudo-device captures packets that are sent to it and diverts them to the IPv4/IPv6 translation daemon.\r
494 \r
495     \r
496     # The `bpf' device enables the Berkeley Packet Filter.\r
497     # Be aware of the administrative consequences of enabling this!\r
498     pseudo-device   bpf           # Berkeley packet filter\r
499 \r
500 This is the Berkeley Packet Filter. This pseudo-device allows network interfaces to be placed in promiscuous mode, capturing every packet on a broadcast network (e.g., an Ethernet). These packets can be captured to disk and or examined with the [tcpdump(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#tcpdump&section1) program.\r
501 \r
502  **Note:** The [bpf(4)](http://leaf.dragonflybsd.org/cgi/web-man?command#bpf&section4) device is also used by [dhclient(8)](http://leaf.dragonflybsd.org/cgi/web-man?command=dhclient&section=8) to obtain the IP address of the default router (gateway) and so on. If you use DHCP, leave this uncommented.\r
503 \r
504     \r
505     # USB support\r
506     #device         uhci          # UHCI PCI->USB interface\r
507     #device         ohci          # OHCI PCI->USB interface\r
508     #device         usb           # USB Bus (required)\r
509     #device         ugen          # Generic\r
510     #device         uhid          # ***Human Interface Devices***\r
511     #device         ukbd          # Keyboard\r
512     #device         ulpt          # Printer\r
513     #device         umass         # Disks/Mass storage - Requires scbus and da\r
514     #device         ums           # Mouse\r
515     # USB Ethernet, requires mii\r
516     #device         aue           # ADMtek USB ethernet\r
517     #device         cue           # CATC USB ethernet\r
518     #device         kue           # Kawasaki LSI USB ethernet\r
519 \r
520 Support for various USB devices.\r
521 \r
522 For more information and additional devices supported by DragonFly, see `/usr/src/sys/i386/conf/LINT`.\r
523 \r
524 #### Notes \r
525 [[!table  data="""
526 |<tablewidth="100%"> [(1)](kernelconfig-config.html#AEN7414) | The auto-tuning algorithm sets `maxuser` equal to the amount of memory in the system, with a minimum of 32, and a maximum of 384. |\r
527 """]]\r
528 \r