xref: /netbsd-src/share/man/man8/MAKEDEV.8 (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1.\" *** ------------------------------------------------------------------
2.\" *** This file was generated automatically
3.\" *** from src/etc/MAKEDEV.tmpl and
4.\" *** src/share/man/man8/MAKEDEV.8.template
5.\" ***
6.\" *** DO NOT EDIT - any changes will be lost!!!
7.\" *** ------------------------------------------------------------------
8.\"
9.\" $NetBSD: MAKEDEV.8,v 1.45 2014/02/24 07:23:41 skrll Exp $
10.\"
11.\" Copyright (c) 2001, 2003, 2007, 2008 The NetBSD Foundation, Inc.
12.\" All rights reserved.
13.\"
14.\" This code is derived from software contributed to The NetBSD Foundation
15.\" by Thomas Klausner.
16.\"
17.\" Redistribution and use in source and binary forms, with or without
18.\" modification, are permitted provided that the following conditions
19.\" are met:
20.\" 1. Redistributions of source code must retain the above copyright
21.\"    notice, this list of conditions and the following disclaimer.
22.\" 2. Redistributions in binary form must reproduce the above copyright
23.\"    notice, this list of conditions and the following disclaimer in the
24.\"    documentation and/or other materials provided with the distribution.
25.\"
26.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36.\" POSSIBILITY OF SUCH DAMAGE.
37.\"
38.Dd February 25, 2012
39.Dt MAKEDEV 8
40.Os
41.Sh NAME
42.Nm MAKEDEV
43.Nd create system and device special files
44.Sh SYNOPSIS
45.\" Please keep this in sync with MAKEDEV.local.8
46.Nm
47.Op Fl fMsu
48.Op Fl m Ar mknod
49.Op Fl p Ar pax
50.Op Fl t Ar mtree
51.Bro Ar special | device Brc Op Ar ...
52.Sh DESCRIPTION
53.Nm
54is used to create system and device special files.
55As arguments it takes the names of known devices, like
56.Ar sd0 ,
57or of special targets, like
58.Pa all
59or
60.Pa std ,
61which create a collection of device special files,
62or
63.Pa local ,
64which invokes
65.Xr MAKEDEV.local 8
66with the
67.Pa all
68argument.
69.Pp
70The script is in
71.Pa /dev/MAKEDEV .
72Devices are created in the current working directory;
73in normal use,
74.Nm
75should be invoked with
76.Pa /dev
77as the current working directory.
78.Pp
79Supported options are:
80.Bl -tag -width XmXmknodXX
81.It Fl f
82Force permissions to be updated on existing devices.
83This works only if
84.Nm
85invokes
86.Xr mknod 8 ;
87it is not compatible with the
88.Fl p ,
89.Fl s ,
90or
91.Fl t
92options.
93.It Fl M
94Create a memory file system, union mounted over the current directory,
95to contain the device special files.
96The memory file system is created using
97.Xr mount_tmpfs 8
98or
99.Xr mount_mfs 8 ,
100in that order of preference.
101.Pp
102If the
103.Fl M
104flag is specified more than once, then
105.Nm
106assumes that it is being invoked from
107.Xr init 8
108to populate a memory file system for
109.Pa /dev .
110In this case,
111.Nm
112will also redirect its output to the system console.
113.It Fl m Ar mknod
114Force the use of
115.Xr mknod 8 ,
116and specify the name or path to the
117.Xr mknod 8
118program.
119[Usually, $TOOL_MKNOD or mknod.]
120.It Fl p Ar pax
121Force the use of
122.Xr pax 1 ,
123and specify the name or path to the
124.Xr pax 1
125program.
126[Usually, $TOOL_PAX or pax.]
127.It Fl s
128Generate an
129.Xr mtree 8
130specfile instead of creating devices.
131.It Fl t Ar mtree
132Force the use of
133.Xr mtree 8 ,
134and specify the name or path to the
135.Xr mtree 8
136program.
137[Usually, $TOOL_MTREE or mtree.]
138.It Fl u
139Don't re-create devices that already exist.
140.El
141.Pp
142.Nm
143has several possible methods of creating device nodes:
144.Bl -bullet
145.It
146By invoking the
147.Xr mknod 8
148command once for each device node.
149This is the traditional method, but it is slow because each device node
150is created using a new process.
151.Pp
152The
153.Fl m
154option forces
155.Nm
156to use the
157.Xr mknod 8
158method.
159.It
160By internally creating a specfile in a format usable by
161.Xr mtree 8 ,
162and providing the specfile on standard input to a
163.Xr pax 1
164or
165.Xr mtree 8
166command, invoked with options that request it to create the device nodes
167as well as any necessary subdirectories.
168This is much faster than creating device nodes with
169.Xr mknod 8 ,
170because it requires much fewer processes;
171however, it's not compatible with the
172.Fl f
173option.
174.Pp
175The
176.Fl p
177or
178.Fl t
179options force
180.Nm
181to use the
182.Xr pax 1
183or
184.Xr mtree 8
185methods.
186.It
187If the
188.Fl s
189option is specified, then
190.Nm
191will not create device nodes at all, but will output
192a specfile in a format usable by
193.Xr mtree 8 .
194.El
195.Pp
196The
197.Fl m , Fl p , Fl s ,
198and
199.Fl t
200flags are mutually exclusive.
201If none of these flags is specified, then
202.Nm
203will use
204.Xr mtree 8 ,
205.Xr pax 1 ,
206or
207.Xr mknod 8 ,
208in that order of preference, depending on which commands
209appear to be available and usable.
210In normal use, it's expected that
211.Xr mtree 8
212will be available, so it will be chosen.
213If
214.Nm
215is invoked by
216.Xr init 8 ,
217it's expected that
218.Xr mtree 8
219will not be available, but
220.Xr pax 1
221may be available.
222.Pp
223The special targets supported on
224.Nx
225are:
226.Pp
227.\" @@@SPECIAL@@@
228.Bl -tag -width 01234567 -compact
229.It Ar all
230Makes all known devices, including local devices. Tries to make the 'standard' number of each type.
231.It Ar init
232A set of devices that is used for MFS /dev by init. May be equal to ``all''.
233.It Ar floppy
234Devices to be put on install floppies
235.It Ar ramdisk
236Devices to be put into INSTALL kernel ramdisks.
237.It Ar std
238Standard devices
239.It Ar local
240Configuration specific devices
241.It Ar wscons
242Make wscons devices
243.It Ar usbs
244Make USB devices
245.It Ar isdns
246Make ISDN devices
247.El
248.Pp
249Please note that any hash marks
250.Pq Dq #
251in the following list of supported device targets must be replaced by
252digits when calling
253.Nm :
254.Pp
255.\" @@@DEVICES@@@
256.Bl -tag -width 01
257.It Tapes :
258. Bl -tag -width 0123456789 -compact
259. It Ar st#
260SCSI tapes, see
261.Xr \&st 4
262. It Ar wt#
263QIC-interfaced (e.g. not SCSI) 3M cartridge tape, see
264.Xr \&wt 4
265. It Ar ht#
266MASSBUS TM03 and TU??, see
267.Xr \&vax/ht 4
268. It Ar mt#
269MSCP tapes (e.g. TU81, TK50), see
270.Xr \&vax/mt 4
271. It Ar tm#
272UNIBUS TM11 and TE10 emulations (e.g. Emulex TC-11), see
273.Xr \&vax/tm 4
274. It Ar ts#
275UNIBUS TS11, see
276.Xr \&vax/ts 4
277. It Ar ut#
278UNIBUS TU45 emulations (e.g. si 9700), see
279.Xr \&vax/ut 4
280. It Ar uu#
281TU58 cassettes on DL11 controller, see
282.Xr \&vax/uu 4
283. El
284.It Disks :
285. Bl -tag -width 0123456789 -compact
286. It Ar ccd#
287Concatenated disk devices, see
288.Xr \&ccd 4
289. It Ar cd#
290SCSI or ATAPI CD-ROM, see
291.Xr \&cd 4
292. It Ar cgd#
293Cryptographic disk devices, see
294.Xr \&cgd 4
295. It Ar raid#
296RAIDframe disk devices, see
297.Xr \&raid 4
298. It Ar sd#
299SCSI disks, see
300.Xr \&sd 4
301. It Ar wd#
302``winchester'' disk drives (ST506,IDE,ESDI,RLL,...), see
303.Xr \&wd 4
304. It Ar bmd#
305Nereid bank memory disks, see
306.Xr \&x68k/bmd 4
307. It Ar ed#
308IBM PS/2 ESDI disk devices, see
309.Xr \&edc 4
310. It Ar fd#
311``floppy'' disk drives (3 1/2", 5 1/4"), see
312.Xr \&amiga/fdc 4 ,
313.Xr \&sparc64/fdc 4 ,
314.Xr \&x86/fdc 4
315. It Ar fss#
316Files system snapshot devices, see
317.Xr \&fss 4
318. It Ar gdrom#
319Dreamcast ``gigadisc'' CD-ROM drive, see
320.Xr \&dreamcast/gdrom 4
321. It Ar hk#
322UNIBUS RK06 and RK07, see
323.Xr \&vax/hk 4
324. It Ar hp#
325MASSBUS RM??, see
326.Xr \&vax/hp 4
327. It Ar ld#
328Logical disk devices (e.g., hardware RAID), see
329.Xr \&ld 4
330. It Ar mcd#
331Mitsumi CD-ROM, see
332.Xr \&mcd 4
333. It Ar md#
334Memory pseudo-disk devices, see
335.Xr \&md 4
336. It Ar ofdisk#
337OpenFirmware disk devices
338. It Ar ra#
339MSCP disks (RA??, RD??)
340. It Ar rb#
341730 IDC w/ RB80 and/or RB02
342. It Ar rd#
343HDC9224 RD disks on VS2000, see
344.Xr \&hp300/rd 4
345. It Ar rl#
346UNIBUS RL02, see
347.Xr \&vax/rl 4
348. It Ar rx#
349MSCP floppy disk (RX33/50/...)
350. It Ar up#
351Other UNIBUS devices (e.g. on Emulex SC-21V controller), see
352.Xr \&vax/up 4
353. It Ar vnd#
354``file'' pseudo-disks, see
355.Xr \&vnd 4
356. It Ar xbd#
357Xen virtual disks, see
358.Xr \&xbd 4
359. It Ar xd#
360Xylogic 753/7053 disks, see
361.Xr \&sparc/xd 4
362. It Ar xy#
363Xylogic 450/451 disks, see
364.Xr \&sparc/xy 4
365. El
366.It Pointing devices :
367. Bl -tag -width 0123456789 -compact
368. It Ar wsmouse#
369wscons mouse events, see
370.Xr \&wsmouse 4
371. It Ar lms#
372Logitech bus mouse, see
373.Xr \&i386/lms 4
374. It Ar mms#
375Microsoft bus mouse, see
376.Xr \&dreamcast/mms 4 ,
377.Xr \&i386/mms 4
378. It Ar qms#
379``quadrature mouse'', see
380.Xr \&acorn32/qms 4
381. It Ar pms#
382PS/2 mouse
383. It Ar mouse
384Mouse (provides events, for X11)
385. El
386.It Keyboard devices :
387. Bl -tag -width 0123456789 -compact
388. It Ar wskbd#
389wscons keyboard events, see
390.Xr \&wskbd 4
391. It Ar kbd
392Raw keyboard (provides events, for X11), see
393.Xr \&sparc/kbd 4 ,
394.Xr \&sun2/kbd 4 ,
395.Xr \&sun3/kbd 4
396. It Ar kbdctl
397Keyboard control
398. El
399.It Terminals/Console ports :
400. Bl -tag -width 0123456789 -compact
401. It Ar tty[01]#
402Standard serial ports, see
403.Xr \&tty 4
404. It Ar tty0#
405SB1250 (``sbscn'') serial ports (sbmips), see
406.Xr \&tty 4
407. It Ar ttyE#
408wscons - Workstation console (``wscons'') glass-tty emulators
409. It Ar ttyCZ?
410Cyclades-Z multiport serial boards. Each ``unit'' makes 64 ports., see
411.Xr \&cz 4
412. It Ar ttyCY?
413Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports., see
414.Xr \&cy 4
415. It Ar ttye#
416ITE bitmapped consoles, see
417.Xr \&amiga/ite 4
418. It Ar ttyv0
419pccons
420. It Ar ttyC?
421NS16550 (``com'') serial ports
422. It Ar ttyS#
423SA1110 serial port (hpcarm)
424. It Ar ttyTX?
425TX39 internal serial ports (hpcmips)
426. It Ar ttyB?
427DEC 3000 ZS8530 (``scc'') serial ports (alpha), see
428.Xr \&scc 4
429. It Ar ttyA#
430Mfc serial ports (amiga)
431. It Ar ttyB#
432Msc serial ports (amiga)
433. It Ar ttyC#
434Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured.
435. It Ar ttyA0
4368530 Channel A (formerly ser02) (atari)
437. It Ar ttyA1
4388530 Channel B (formerly mdm02) (atari)
439. It Ar ttyB0
440UART on first 68901 (formerly mdm01) (atari)
441. It Ar ixpcom
442IXP12x0 COM ports
443. It Ar epcom
444EP93xx COM ports
445. It Ar ttyM?
446HP200/300 4 port serial mux interface (hp300)
447. It Ar ttya
448``ttya'' system console (luna68k)
449. It Ar ttyb
450Second system serial port (luna68k)
451. It Ar tty#
452Onboard serial ports (mvme68k) On the mvme147 these are: ttyZ1, ttyZ2 and ttyZ3. On the mvme167, and '177: ttyC1, ttyC2 and ttyC3. Note that tty[CZ]0 is grabbed by the console device so is not created by default, see
453.Xr \&tty 4
454. It Ar dc#
455PMAX 4 channel serial interface (kbd, mouse, modem, printer)
456. It Ar scc#
45782530 serial interface (pmax), see
458.Xr \&scc 4
459. It Ar ttyZ#
460Zilog 8530 (``zstty'') serial ports, see
461.Xr \&zstty 4
462. It Ar tty[abcd]
463Built-in serial ports (sparc)
464. It Ar tty#
465Z88530 serial controllers (sparc64), see
466.Xr \&tty 4
467. It Ar ttyh#
468SAB82532 serial controllers (sparc64), see
469.Xr \&sparc64/sab 4
470. It Ar tty[a-j]
471Built-in serial ports (sun2, sun3)
472. It Ar ttyC?
473pccons (arc)
474. It Ar dz#
475UNIBUS DZ11 and DZ32 (vax), see
476.Xr \&emips/dz 4 ,
477.Xr \&vax/dz 4
478. It Ar dh#
479UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see
480.Xr \&vax/dh 4
481. It Ar dmf#
482UNIBUS DMF32 (vax), see
483.Xr \&vax/dmf 4
484. It Ar dhu#
485UNIBUS DHU11 (vax), see
486.Xr \&vax/dhu 4
487. It Ar dmz#
488UNIBUS DMZ32 (vax), see
489.Xr \&vax/dmz 4
490. It Ar dl#
491UNIBUS DL11 (vax), see
492.Xr \&vax/dl 4
493. It Ar xencons
494Xen virtual console
495. El
496.It Terminal multiplexors :
497. Bl -tag -width 0123456789 -compact
498. It Ar dc#
4994 channel serial interface (keyboard, mouse, modem, printer)
500. It Ar dh#
501UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see
502.Xr \&vax/dh 4
503. It Ar dhu#
504UNIBUS DHU11, see
505.Xr \&vax/dhu 4
506. It Ar dl#
507UNIBUS DL11, see
508.Xr \&vax/dl 4
509. It Ar dmf#
510UNIBUS DMF32, see
511.Xr \&vax/dmf 4
512. It Ar dmz#
513UNIBUS DMZ32, see
514.Xr \&vax/dmz 4
515. It Ar dz#
516UNIBUS DZ11 and DZ32, see
517.Xr \&emips/dz 4 ,
518.Xr \&vax/dz 4
519. It Ar scc#
52082530 serial interface, see
521.Xr \&scc 4
522. El
523.It Call units :
524. Bl -tag -width 0123456789 -compact
525. It Ar dn#
526UNIBUS DN11 and emulations (e.g. Able Quadracall), see
527.Xr \&vax/dn 4
528. El
529.It Pseudo terminals :
530. Bl -tag -width 0123456789 -compact
531. It Ar ptm
532Pty multiplexor device, and pts directory, see
533.Xr \&ptm 4
534. It Ar pty#
535Set of 16 master and slave pseudo terminals, see
536.Xr \&pty 4
537. It Ar opty
538First 16 ptys, to save inodes on install media
539. It Ar ipty
540First 2 ptys, for install media use only
541. El
542.It Printers :
543. Bl -tag -width 0123456789 -compact
544. It Ar arcpp#
545Archimedes parallel port
546. It Ar lpt#
547Stock lp, see
548.Xr \&lpt 4 ,
549.Xr \&acorn32/lpt 4 ,
550.Xr \&mvme68k/lpt 4 ,
551.Xr \&x86/lpt 4
552. It Ar lpa#
553Interruptless lp
554. It Ar par#
555Amiga motherboard parallel port
556. It Ar cpi#
557Macintosh Nubus CSI parallel printer card, see
558.Xr \&mac68k/cpi 4
559. El
560.It USB devices :
561. Bl -tag -width 0123456789 -compact
562. It Ar usb#
563USB control devices, see
564.Xr \&usb 4
565. It Ar uhid#
566USB generic HID devices, see
567.Xr \&uhid 4
568. It Ar ulpt#
569USB printer devices, see
570.Xr \&ulpt 4
571. It Ar ugen#
572USB generic devices, see
573.Xr \&ugen 4
574. It Ar urio#
575USB Diamond Rio 500 devices, see
576.Xr \&urio 4
577. It Ar uscanner#
578USB scanners, see
579.Xr \&uscanner 4
580. It Ar ttyHS#
581USB Option N.V. modems
582. It Ar ttyU#
583USB modems, see
584.Xr \&ucom 4
585. It Ar ttyY#
586USB serial adapters
587. El
588.It ISDN devices :
589. Bl -tag -width 0123456789 -compact
590. It Ar isdn
591Communication between userland isdnd and kernel, see
592.Xr \&isdn 4
593. It Ar isdnctl
594Control device, see
595.Xr \&isdnctl 4
596. It Ar isdnbchan#
597Raw b-channel access, see
598.Xr \&isdnbchan 4
599. It Ar isdntel#
600Telephony device, see
601.Xr \&isdntel 4
602. It Ar isdnteld#
603Telephony dialout device
604. It Ar isdntrc#
605Trace device, see
606.Xr \&isdntrc 4
607. El
608.It Video devices :
609. Bl -tag -width 0123456789 -compact
610. It Ar bwtwo#
611Monochromatic frame buffer, see
612.Xr \&sparc/bwtwo 4 ,
613.Xr \&sun2/bwtwo 4 ,
614.Xr \&sun3/bwtwo 4
615. It Ar cgtwo#
6168-bit color frame buffer, see
617.Xr \&sparc/cgtwo 4 ,
618.Xr \&sun3/cgtwo 4
619. It Ar cgthree#
6208-bit color frame buffer, see
621.Xr \&sparc/cgthree 4
622. It Ar cgfour#
6238-bit color frame buffer, see
624.Xr \&sparc/cgfour 4 ,
625.Xr \&sun3/cgfour 4
626. It Ar cgsix#
627Accelerated 8-bit color frame buffer, see
628.Xr \&sparc/cgsix 4
629. It Ar cgeight#
63024-bit color frame buffer, see
631.Xr \&sparc/cgeight 4
632. It Ar etvme
633Tseng et-compatible cards on VME (atari)
634. It Ar ik#
635UNIBUS interface to Ikonas frame buffer, see
636.Xr \&vax/ik 4
637. It Ar leo
638Circad Leonardo VME-bus true color (atari)
639. It Ar ps#
640UNIBUS interface to Picture System 2, see
641.Xr \&vax/ps 4
642. It Ar qv#
643QVSS (MicroVAX) display
644. It Ar tcx#
645Accelerated 8/24-bit color frame buffer, see
646.Xr \&sparc/tcx 4
647. El
648.It Maple bus devices :
649. Bl -tag -width 0123456789 -compact
650. It Ar maple
651Maple bus control devices, see
652.Xr \&dreamcast/maple 4
653. It Ar mlcd#
654Maple bus LCD devices, see
655.Xr \&dreamcast/mlcd 4
656. It Ar mmem#
657Maple bus storage devices, see
658.Xr \&dreamcast/mmem 4
659. El
660.It IEEE1394 bus devices :
661. Bl -tag -width 0123456789 -compact
662. It Ar fw#
663IEEE1394 bus generic node access devices
664. It Ar fwmem#
665IEEE1394 bus physical memory of the remote node access devices
666. El
667.It Special purpose devices :
668. Bl -tag -width 0123456789 -compact
669. It Ar ad#
670UNIBUS interface to Data Translation A/D converter, see
671.Xr \&vax/ad 4
672. It Ar agp#
673AGP GART devices, see
674.Xr \&agp 4
675. It Ar altq
676ALTQ control interface, see
677.Xr \&altq 4
678. It Ar amr#
679AMI MegaRaid control device, see
680.Xr \&amr 4
681. It Ar apm
682Power management device, see
683.Xr \&i386/apm 4
684. It Ar audio#
685Audio devices, see
686.Xr \&audio 4
687. It Ar bell#
688OPM bell device (x68k)
689. It Ar bktr
690Brooktree 848/849/878/879 based TV cards, see
691.Xr \&bktr 4
692. It Ar bpf
693Packet filter, see
694.Xr \&bpf 4
695. It Ar bthub
696Bluetooth Device Hub control interface, see
697.Xr \&bthub 4
698. It Ar cfs#
699Coda file system device
700. It Ar ch#
701SCSI media changer, see
702.Xr \&ch 4
703. It Ar cir#
704Consumer IR, see
705.Xr \&cir 4
706. It Ar clockctl
707Clock control for non root users, see
708.Xr \&clockctl 4
709. It Ar cpuctl
710CPU control
711. It Ar crypto
712Hardware crypto access driver, see
713.Xr \&crypto 4
714. It Ar dmoverio
715Hardware-assisted data movers, see
716.Xr \&dmoverio 4
717. It Ar dpt#
718DPT/Adaptec EATA RAID management interface, see
719.Xr \&dpt 4
720. It Ar dpti#
721DPT/Adaptec I2O RAID management interface, see
722.Xr \&dpti 4
723. It Ar drm#
724Direct Rendering Manager interface, see
725.Xr \&drm 4
726. It Ar dtv#
727Digital TV interface, see
728.Xr \&dtv 4
729. It Ar fb#
730PMAX generic framebuffer pseudo-device
731. It Ar fd
732File descriptors
733. It Ar grf#
734Graphics frame buffer device, see
735.Xr \&amiga/grf 4
736. It Ar hdaudio#
737High Definition audio control device, see
738.Xr \&hdaudio 4
739. It Ar hil
740HP300 HIL input devices, see
741.Xr \&hil 4
742. It Ar icp
743ICP-Vortex/Intel RAID control interface, see
744.Xr \&icp 4
745. It Ar iic#
746IIC bus device, see
747.Xr \&iic 4
748. It Ar io
749X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see
750.Xr \&hppa/io 4 ,
751.Xr \&i386/io 4
752. It Ar iop#
753I2O IOP control interface, see
754.Xr \&iop 4
755. It Ar ipl
756IP Filter
757. It Ar irframe#
758IrDA physical frame, see
759.Xr \&irframe 4
760. It Ar ite#
761Terminal emulator interface to HP300 graphics devices, see
762.Xr \&amiga/ite 4
763. It Ar joy#
764Joystick device, see
765.Xr \&joy 4
766. It Ar kttcp
767Kernel ttcp helper device, see
768.Xr \&kttcp 4
769. It Ar lockstat
770Kernel locking statistics
771. It Ar magma#
772Magma multiport serial/parallel cards, see
773.Xr \&sparc/magma 4
774. It Ar midi#
775MIDI, see
776.Xr \&midi 4
777. It Ar mlx#
778Mylex DAC960 control interface, see
779.Xr \&mlx 4
780. It Ar mly#
781Mylex AcceleRAID/eXtremeRAID control interface, see
782.Xr \&mly 4
783. It Ar np#
784UNIBUS Ethernet co-processor interface, for downloading., see
785.Xr \&vax/np 4
786. It Ar npf
787NPF packet filter
788. It Ar nsmb#
789SMB requester, see
790.Xr \&nsmb 4
791. It Ar openfirm
792OpenFirmware accessor
793. It Ar pad#
794Pseudo-audio device driver, see
795.Xr \&pad 4
796. It Ar pci#
797PCI bus access devices, see
798.Xr \&pci 4
799. It Ar pf
800PF packet filter
801. It Ar putter
802Pass-to-Userspace Transporter
803. It Ar px#
804PixelStamp Xserver access, see
805.Xr \&px 4
806. It Ar radio#
807Radio devices, see
808.Xr \&radio 4
809. It Ar random
810Random number generator, see
811.Xr \&rnd 4
812. It Ar rtc#
813RealTimeClock, see
814.Xr \&atari/rtc 4 ,
815.Xr \&evbppc/rtc 4 ,
816.Xr \&hp300/rtc 4
817. It Ar satlink#
818PlanetConnect satellite receiver driver
819. It Ar scsibus#
820SCSI busses, see
821.Xr \&scsi 4
822. It Ar se#
823SCSI Ethernet, see
824.Xr \&se 4
825. It Ar ses#
826SES/SAF-TE SCSI Devices, see
827.Xr \&ses 4
828. It Ar speaker
829PC speaker, see
830.Xr \&speaker 4
831. It Ar sram
832Battery backuped memory (x68k)
833. It Ar ss#
834SCSI scanner, see
835.Xr \&ss 4
836. It Ar stic#
837PixelStamp interface chip
838. It Ar sysmon
839System Monitoring hardware, see
840.Xr \&envsys 4
841. It Ar tap#
842Virtual Ethernet device, see
843.Xr \&tap 4
844. It Ar tun#
845Network tunnel driver, see
846.Xr \&tun 4
847. It Ar twa
8483ware Apache control interface, see
849.Xr \&twa 4
850. It Ar twe
8513ware Escalade control interface, see
852.Xr \&twe 4
853. It Ar uk#
854Unknown SCSI device, see
855.Xr \&uk 4
856. It Ar veriexec
857Veriexec fingerprint loader, see
858.Xr \&veriexec 4
859. It Ar video#
860Video capture devices, see
861.Xr \&video 4
862. It Ar view#
863Generic interface to graphic displays (Amiga)
864. It Ar wsfont#
865Console font control, see
866.Xr \&wsfont 4
867. It Ar wsmux#
868wscons event multiplexor, see
869.Xr \&wsmux 4
870. It Ar xenevt
871Xen event interface
872. El
873.It iSCSI communication devices
874. Bl -tag -width 0123456789 -compact
875. It Ar iscsi#
876ISCSI driver and /sbin/iscsid communication
877. El
878.El
879.Sh ENVIRONMENT
880The following environment variables affect the execution of
881.Nm :
882.Pp
883.Bl -tag -width indent
884.It Ev MAKEDEV_AS_LIBRARY
885If this is set, then
886.Nm
887will define several shell functions and then return,
888ignoring all its command line options and arguments.
889This is used to enable
890.Xr MAKEDEV.local 8
891to use the shell functions defined in
892.Nm .
893.El
894.Sh FILES
895.Bl -tag -width "/dev/MAKEDEV.local" -compact
896.It Pa /dev
897special device files directory
898.It Pa /dev/MAKEDEV
899script described in this man page
900.It Pa /dev/MAKEDEV.local
901script for site-specific devices
902.El
903.Sh DIAGNOSTICS
904If the script reports an error that is difficult to understand,
905you can get more debugging output by using
906.Dl Ic sh Fl x Ar MAKEDEV Ar argument .
907.Sh SEE ALSO
908.Xr config 1 ,
909.Xr pax 1 ,
910.Xr intro 4 ,
911.Xr diskless 8 ,
912.Xr init 8 ,
913.Xr MAKEDEV.local 8 ,
914.Xr mknod 8 ,
915.Xr mount_mfs 8 ,
916.Xr mount_tmpfs 8 ,
917.Xr mtree 8
918.Sh HISTORY
919The
920.Nm
921command appeared in
922.Bx 4.2 .
923The
924.Fl f ,
925.Fl m ,
926and
927.Fl s
928options were added in
929.Nx 2.0 .
930The
931.Fl p ,
932.Fl t ,
933and
934.Fl M
935options were added in
936.Nx 5.0 .
937The ability to be used as a function library was added in
938.Nx 5.0 .
939.Sh BUGS
940The
941.Fl f
942option is not compatible with the use of
943.Xr mtree 8
944or
945.Xr pax 1 .
946.Sh NOTES
947Not all devices listed in this manpage are supported on all platforms.
948.Pp
949This man page is generated automatically from the same sources
950as
951.Pa /dev/MAKEDEV ,
952in which the device files are not always sorted, which may result
953in an unusual (non-alphabetical) order.
954.Pp
955In order to allow a diskless
956.Nx
957client to obtain its
958.Pa /dev
959directory from a file server running a foreign operating system,
960one of the following techniques may be useful to populate
961a directory of device nodes on the foreign server:
962.Bl -bullet
963.It
964If the foreign server is sufficiently similar to
965.Nx ,
966run
967.Nm
968in an appropriate directory of the foreign server,
969using the
970.Fl m
971flag to refer to a script that converts from command line
972arguments that would be usable with the
973.Nx
974.Xr mknod 8
975command to the equivalent commands for the foreign server.
976.It
977Run
978.Nm
979with the
980.Fl s
981flag to generate an
982.Xr mtree 8
983specification file; this can be done on any host with a
984POSIX-compliant shell and a few widely-available utilities.
985Use the
986.Xr pax 1
987command with the
988.Fl w Fl M
989flags to convert the
990.Xr mtree 8
991specification file into an archive
992in a format that supports device nodes
993(such as
994.Ar ustar
995format);
996this can be done on a
997.Nx
998host, or can be done in a cross-build environment using
999.Sy TOOLDIR Ns Pa /bin/nbpax .
1000Finally, use apropriate tools on the foreign server
1001to unpack the archive and create the device nodes.
1002.El
1003