xref: /netbsd-src/share/man/man8/MAKEDEV.8 (revision c38e7cc395b1472a774ff828e46123de44c628e9)
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.47 2018/01/23 19:14:09 sevan 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 January 23, 2018
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 lua
242Lua device
243.It Ar wscons
244Make wscons devices
245.It Ar usbs
246Make USB devices
247.It Ar isdns
248Make ISDN devices
249.El
250.Pp
251Please note that any hash marks
252.Pq Dq #
253in the following list of supported device targets must be replaced by
254digits when calling
255.Nm :
256.Pp
257.\" @@@DEVICES@@@
258.Bl -tag -width 01
259.It Tapes :
260. Bl -tag -width 0123456789 -compact
261. It Ar st#
262SCSI tapes, see
263.Xr \&st 4
264. It Ar wt#
265QIC-interfaced (e.g. not SCSI) 3M cartridge tape, see
266.Xr \&wt 4
267. It Ar ht#
268MASSBUS TM03 and TU??, see
269.Xr \&vax/ht 4
270. It Ar mt#
271MSCP tapes (e.g. TU81, TK50), see
272.Xr \&vax/mt 4
273. It Ar tm#
274UNIBUS TM11 and TE10 emulations (e.g. Emulex TC-11), see
275.Xr \&vax/tm 4
276. It Ar ts#
277UNIBUS TS11, see
278.Xr \&vax/ts 4
279. It Ar ut#
280UNIBUS TU45 emulations (e.g. si 9700), see
281.Xr \&vax/ut 4
282. It Ar uu#
283TU58 cassettes on DL11 controller, see
284.Xr \&vax/uu 4
285. El
286.It Disks :
287. Bl -tag -width 0123456789 -compact
288. It Ar dk#
289Wedge disk slices, see
290.Xr \&dk 4
291. It Ar ccd#
292Concatenated disk devices, see
293.Xr \&ccd 4
294. It Ar cd#
295SCSI or ATAPI CD-ROM, see
296.Xr \&cd 4
297. It Ar cgd#
298Cryptographic disk devices, see
299.Xr \&cgd 4
300. It Ar raid#
301RAIDframe disk devices, see
302.Xr \&raid 4
303. It Ar sd#
304SCSI disks, see
305.Xr \&sd 4
306. It Ar wd#
307``winchester'' disk drives (ST506,IDE,ESDI,RLL,...), see
308.Xr \&wd 4
309. It Ar bmd#
310Nereid bank memory disks, see
311.Xr \&x68k/bmd 4
312. It Ar ed#
313IBM PS/2 ESDI disk devices, see
314.Xr \&edc 4
315. It Ar fd#
316``floppy'' disk drives (3 1/2", 5 1/4"), see
317.Xr \&amiga/fdc 4 ,
318.Xr \&sparc64/fdc 4 ,
319.Xr \&x86/fdc 4
320. It Ar fss#
321Files system snapshot devices, see
322.Xr \&fss 4
323. It Ar gdrom#
324Dreamcast ``gigadisc'' CD-ROM drive, see
325.Xr \&dreamcast/gdrom 4
326. It Ar hk#
327UNIBUS RK06 and RK07, see
328.Xr \&vax/hk 4
329. It Ar hp#
330MASSBUS RM??, see
331.Xr \&vax/hp 4
332. It Ar ld#
333Logical disk devices (e.g., hardware RAID), see
334.Xr \&ld 4
335. It Ar mcd#
336Mitsumi CD-ROM, see
337.Xr \&mcd 4
338. It Ar md#
339Memory pseudo-disk devices, see
340.Xr \&md 4
341. It Ar ofdisk#
342OpenFirmware disk devices
343. It Ar ra#
344MSCP disks (RA??, RD??)
345. It Ar rb#
346730 IDC w/ RB80 and/or RB02
347. It Ar rd#
348HDC9224 RD disks on VS2000, see
349.Xr \&hp300/rd 4
350. It Ar rl#
351UNIBUS RL02, see
352.Xr \&vax/rl 4
353. It Ar rx#
354MSCP floppy disk (RX33/50/...)
355. It Ar up#
356Other UNIBUS devices (e.g. on Emulex SC-21V controller), see
357.Xr \&vax/up 4
358. It Ar vnd#
359``file'' pseudo-disks, see
360.Xr \&vnd 4
361. It Ar xbd#
362Xen virtual disks, see
363.Xr \&xbd 4
364. It Ar xd#
365Xylogic 753/7053 disks, see
366.Xr \&sparc/xd 4
367. It Ar xy#
368Xylogic 450/451 disks, see
369.Xr \&sparc/xy 4
370. El
371.It Pointing devices :
372. Bl -tag -width 0123456789 -compact
373. It Ar wsmouse#
374wscons mouse events, see
375.Xr \&wsmouse 4
376. It Ar lms#
377Logitech bus mouse, see
378.Xr \&i386/lms 4
379. It Ar mms#
380Microsoft bus mouse, see
381.Xr \&dreamcast/mms 4 ,
382.Xr \&i386/mms 4
383. It Ar qms#
384``quadrature mouse'', see
385.Xr \&acorn32/qms 4
386. It Ar pms#
387PS/2 mouse
388. It Ar mouse
389Mouse (provides events, for X11)
390. El
391.It Keyboard devices :
392. Bl -tag -width 0123456789 -compact
393. It Ar wskbd#
394wscons keyboard events, see
395.Xr \&wskbd 4
396. It Ar kbd
397Raw keyboard (provides events, for X11), see
398.Xr \&sparc/kbd 4 ,
399.Xr \&sun2/kbd 4 ,
400.Xr \&sun3/kbd 4
401. It Ar kbdctl
402Keyboard control
403. El
404.It Terminals/Console ports :
405. Bl -tag -width 0123456789 -compact
406. It Ar tty[01]#
407Standard serial ports, see
408.Xr \&tty 4
409. It Ar tty0#
410SB1250 (``sbscn'') serial ports (sbmips), see
411.Xr \&tty 4
412. It Ar ttyE#
413wscons - Workstation console (``wscons'') glass-tty emulators
414. It Ar ttyCZ?
415Cyclades-Z multiport serial boards. Each ``unit'' makes 64 ports., see
416.Xr \&cz 4
417. It Ar ttyCY?
418Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports., see
419.Xr \&cy 4
420. It Ar ttye#
421ITE bitmapped consoles, see
422.Xr \&amiga/ite 4
423. It Ar ttyv0
424pccons
425. It Ar ttyC?
426NS16550 (``com'') serial ports
427. It Ar ttyS#
428SA1110 serial port (hpcarm)
429. It Ar ttyTX?
430TX39 internal serial ports (hpcmips)
431. It Ar ttyB?
432DEC 3000 ZS8530 (``scc'') serial ports (alpha)
433. It Ar ttyA#
434Mfc serial ports (amiga)
435. It Ar ttyB#
436Msc serial ports (amiga)
437. It Ar ttyC#
438Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured.
439. It Ar ttyA0
4408530 Channel A (formerly ser02) (atari)
441. It Ar ttyA1
4428530 Channel B (formerly mdm02) (atari)
443. It Ar ttyB0
444UART on first 68901 (formerly mdm01) (atari)
445. It Ar ixpcom
446IXP12x0 COM ports
447. It Ar epcom
448EP93xx COM ports
449. It Ar plcom
450ARM PL01[01] serial ports
451. It Ar wmcom
452EPOC Windermere COM ports
453. It Ar ttyM?
454HP200/300 4 port serial mux interface (hp300)
455. It Ar ttya
456``ttya'' system console (luna68k)
457. It Ar ttyb
458Second system serial port (luna68k)
459. It Ar tty#
460Onboard 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
461.Xr \&tty 4
462. It Ar dc#
463PMAX 4 channel serial interface (kbd, mouse, modem, printer)
464. It Ar scc#
46582530 serial interface (pmax)
466. It Ar ttyZ#
467Zilog 8530 (``zstty'') serial ports, see
468.Xr \&zstty 4
469. It Ar tty[abcd]
470Built-in serial ports (sparc)
471. It Ar tty#
472Z88530 serial controllers (sparc64), see
473.Xr \&tty 4
474. It Ar ttyh#
475SAB82532 serial controllers (sparc64), see
476.Xr \&sparc64/sab 4
477. It Ar tty[a-j]
478Built-in serial ports (sun2, sun3)
479. It Ar ttyC?
480pccons (arc)
481. It Ar dz#
482UNIBUS DZ11 and DZ32 (vax), see
483.Xr \&emips/dz 4 ,
484.Xr \&vax/dz 4
485. It Ar dh#
486UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see
487.Xr \&vax/dh 4
488. It Ar dmf#
489UNIBUS DMF32 (vax), see
490.Xr \&vax/dmf 4
491. It Ar dhu#
492UNIBUS DHU11 (vax), see
493.Xr \&vax/dhu 4
494. It Ar dmz#
495UNIBUS DMZ32 (vax), see
496.Xr \&vax/dmz 4
497. It Ar dl#
498UNIBUS DL11 (vax), see
499.Xr \&vax/dl 4
500. It Ar xencons
501Xen virtual console
502. El
503.It Terminal multiplexors :
504. Bl -tag -width 0123456789 -compact
505. It Ar dc#
5064 channel serial interface (keyboard, mouse, modem, printer)
507. It Ar dh#
508UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see
509.Xr \&vax/dh 4
510. It Ar dhu#
511UNIBUS DHU11, see
512.Xr \&vax/dhu 4
513. It Ar dl#
514UNIBUS DL11, see
515.Xr \&vax/dl 4
516. It Ar dmf#
517UNIBUS DMF32, see
518.Xr \&vax/dmf 4
519. It Ar dmz#
520UNIBUS DMZ32, see
521.Xr \&vax/dmz 4
522. It Ar dz#
523UNIBUS DZ11 and DZ32, see
524.Xr \&emips/dz 4 ,
525.Xr \&vax/dz 4
526. It Ar scc#
52782530 serial interface
528. El
529.It Call units :
530. Bl -tag -width 0123456789 -compact
531. It Ar dn#
532UNIBUS DN11 and emulations (e.g. Able Quadracall), see
533.Xr \&vax/dn 4
534. El
535.It Pseudo terminals :
536. Bl -tag -width 0123456789 -compact
537. It Ar ptm
538Pty multiplexor device, and pts directory, see
539.Xr \&ptm 4
540. It Ar pty#
541Set of 16 master and slave pseudo terminals, see
542.Xr \&pty 4
543. It Ar opty
544First 16 ptys, to save inodes on install media
545. It Ar ipty
546First 2 ptys, for install media use only
547. El
548.It Printers :
549. Bl -tag -width 0123456789 -compact
550. It Ar arcpp#
551Archimedes parallel port
552. It Ar lpt#
553Stock lp, see
554.Xr \&lpt 4 ,
555.Xr \&acorn32/lpt 4 ,
556.Xr \&mvme68k/lpt 4 ,
557.Xr \&x86/lpt 4
558. It Ar lpa#
559Interruptless lp
560. It Ar par#
561Amiga motherboard parallel port
562. It Ar cpi#
563Macintosh Nubus CSI parallel printer card, see
564.Xr \&mac68k/cpi 4
565. El
566.It USB devices :
567. Bl -tag -width 0123456789 -compact
568. It Ar usb#
569USB control devices, see
570.Xr \&usb 4
571. It Ar uhid#
572USB generic HID devices, see
573.Xr \&uhid 4
574. It Ar ulpt#
575USB printer devices, see
576.Xr \&ulpt 4
577. It Ar ugen#
578USB generic devices, see
579.Xr \&ugen 4
580. It Ar urio#
581USB Diamond Rio 500 devices, see
582.Xr \&urio 4
583. It Ar uscanner#
584USB scanners, see
585.Xr \&uscanner 4
586. It Ar ttyHS#
587USB Option N.V. modems
588. It Ar ttyU#
589USB modems, see
590.Xr \&ucom 4
591. It Ar ttyY#
592USB serial adapters
593. El
594.It ISDN devices :
595. Bl -tag -width 0123456789 -compact
596. It Ar isdn
597Communication between userland isdnd and kernel, see
598.Xr \&isdn 4
599. It Ar isdnctl
600Control device, see
601.Xr \&isdnctl 4
602. It Ar isdnbchan#
603Raw b-channel access, see
604.Xr \&isdnbchan 4
605. It Ar isdntel#
606Telephony device, see
607.Xr \&isdntel 4
608. It Ar isdnteld#
609Telephony dialout device
610. It Ar isdntrc#
611Trace device, see
612.Xr \&isdntrc 4
613. El
614.It Video devices :
615. Bl -tag -width 0123456789 -compact
616. It Ar bwtwo#
617Monochromatic frame buffer, see
618.Xr \&sparc/bwtwo 4 ,
619.Xr \&sun2/bwtwo 4 ,
620.Xr \&sun3/bwtwo 4
621. It Ar cgtwo#
6228-bit color frame buffer, see
623.Xr \&sparc/cgtwo 4 ,
624.Xr \&sun3/cgtwo 4
625. It Ar cgthree#
6268-bit color frame buffer, see
627.Xr \&sparc/cgthree 4
628. It Ar cgfour#
6298-bit color frame buffer, see
630.Xr \&sparc/cgfour 4 ,
631.Xr \&sun3/cgfour 4
632. It Ar cgsix#
633Accelerated 8-bit color frame buffer, see
634.Xr \&sparc/cgsix 4
635. It Ar cgeight#
63624-bit color frame buffer, see
637.Xr \&sparc/cgeight 4
638. It Ar etvme
639Tseng et-compatible cards on VME (atari)
640. It Ar ik#
641UNIBUS interface to Ikonas frame buffer, see
642.Xr \&vax/ik 4
643. It Ar leo
644Circad Leonardo VME-bus true color (atari)
645. It Ar ps#
646UNIBUS interface to Picture System 2, see
647.Xr \&vax/ps 4
648. It Ar qv#
649QVSS (MicroVAX) display
650. It Ar tcx#
651Accelerated 8/24-bit color frame buffer, see
652.Xr \&sparc/tcx 4
653. El
654.It Maple bus devices :
655. Bl -tag -width 0123456789 -compact
656. It Ar maple
657Maple bus control devices, see
658.Xr \&dreamcast/maple 4
659. It Ar mlcd#
660Maple bus LCD devices, see
661.Xr \&dreamcast/mlcd 4
662. It Ar mmem#
663Maple bus storage devices, see
664.Xr \&dreamcast/mmem 4
665. El
666.It IEEE1394 bus devices :
667. Bl -tag -width 0123456789 -compact
668. It Ar fw#
669IEEE1394 bus generic node access devices
670. It Ar fwmem#
671IEEE1394 bus physical memory of the remote node access devices
672. El
673.It Special purpose devices :
674. Bl -tag -width 0123456789 -compact
675. It Ar ad#
676UNIBUS interface to Data Translation A/D converter, see
677.Xr \&vax/ad 4
678. It Ar agp#
679AGP GART devices, see
680.Xr \&agp 4
681. It Ar altq
682ALTQ control interface, see
683.Xr \&altq 4
684. It Ar amr#
685AMI MegaRaid control device, see
686.Xr \&amr 4
687. It Ar apm
688Power management device, see
689.Xr \&i386/apm 4
690. It Ar audio#
691Audio devices, see
692.Xr \&audio 4
693. It Ar bell#
694OPM bell device (x68k)
695. It Ar bktr
696Brooktree 848/849/878/879 based TV cards, see
697.Xr \&bktr 4
698. It Ar bpf
699Packet filter, see
700.Xr \&bpf 4
701. It Ar bthub
702Bluetooth Device Hub control interface, see
703.Xr \&bthub 4
704. It Ar cfs#
705Coda file system device
706. It Ar ch#
707SCSI media changer, see
708.Xr \&ch 4
709. It Ar cir#
710Consumer IR, see
711.Xr \&cir 4
712. It Ar clockctl
713Clock control for non root users, see
714.Xr \&clockctl 4
715. It Ar cpuctl
716CPU control
717. It Ar crypto
718Hardware crypto access driver, see
719.Xr \&crypto 4
720. It Ar dmoverio
721Hardware-assisted data movers, see
722.Xr \&dmoverio 4
723. It Ar dpt#
724DPT/Adaptec EATA RAID management interface, see
725.Xr \&dpt 4
726. It Ar dpti#
727DPT/Adaptec I2O RAID management interface, see
728.Xr \&dpti 4
729. It Ar drm#
730Direct Rendering Manager interface, see
731.Xr \&drm 4
732. It Ar dtv#
733Digital TV interface, see
734.Xr \&dtv 4
735. It Ar fb#
736PMAX generic framebuffer pseudo-device
737. It Ar fd
738File descriptors
739. It Ar grf#
740Graphics frame buffer device, see
741.Xr \&amiga/grf 4
742. It Ar hdaudio#
743High Definition audio control device, see
744.Xr \&hdaudio 4
745. It Ar hdmicec#
746HDMI CEC devices
747. It Ar hil
748HP300 HIL input devices, see
749.Xr \&hil 4
750. It Ar icp
751ICP-Vortex/Intel RAID control interface, see
752.Xr \&icp 4
753. It Ar iic#
754IIC bus device, see
755.Xr \&iic 4
756. It Ar io
757X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see
758.Xr \&hppa/io 4 ,
759.Xr \&i386/io 4
760. It Ar iop#
761I2O IOP control interface, see
762.Xr \&iop 4
763. It Ar ipl
764IP Filter
765. It Ar irframe#
766IrDA physical frame, see
767.Xr \&irframe 4
768. It Ar ite#
769Terminal emulator interface to HP300 graphics devices, see
770.Xr \&amiga/ite 4
771. It Ar joy#
772Joystick device, see
773.Xr \&joy 4
774. It Ar kttcp
775Kernel ttcp helper device, see
776.Xr \&kttcp 4
777. It Ar lockstat
778Kernel locking statistics
779. It Ar magma#
780Magma multiport serial/parallel cards, see
781.Xr \&sparc/magma 4
782. It Ar midi#
783MIDI, see
784.Xr \&midi 4
785. It Ar mfi#
786LSI MegaRAID/MegaSAS control interface, see
787.Xr \&mfi 4
788. It Ar mlx#
789Mylex DAC960 control interface, see
790.Xr \&mlx 4
791. It Ar mly#
792Mylex AcceleRAID/eXtremeRAID control interface, see
793.Xr \&mly 4
794. It Ar np#
795UNIBUS Ethernet co-processor interface, for downloading., see
796.Xr \&vax/np 4
797. It Ar npf
798NPF packet filter
799. It Ar nsmb#
800SMB requester, see
801.Xr \&nsmb 4
802. It Ar nvme#
803Non-Volatile Memory Host Controller Interface device driver, see
804.Xr \&nvme 4
805. It Ar nvme#ns*
806Non-Volatile Memory namespace
807. It Ar openfirm
808OpenFirmware accessor
809. It Ar pad#
810Pseudo-audio device driver, see
811.Xr \&pad 4
812. It Ar pci#
813PCI bus access devices, see
814.Xr \&pci 4
815. It Ar pf
816PF packet filter
817. It Ar putter
818Pass-to-Userspace Transporter
819. It Ar px#
820PixelStamp Xserver access, see
821.Xr \&px 4
822. It Ar radio#
823Radio devices, see
824.Xr \&radio 4
825. It Ar random
826Random number generator, see
827.Xr \&rnd 4
828. It Ar rtc#
829RealTimeClock, see
830.Xr \&atari/rtc 4 ,
831.Xr \&evbppc/rtc 4 ,
832.Xr \&hp300/rtc 4
833. It Ar satlink#
834PlanetConnect satellite receiver driver
835. It Ar scsibus#
836SCSI busses, see
837.Xr \&scsi 4
838. It Ar se#
839SCSI Ethernet, see
840.Xr \&se 4
841. It Ar ses#
842SES/SAF-TE SCSI Devices, see
843.Xr \&ses 4
844. It Ar speaker
845PC speaker, see
846.Xr \&speaker 4
847. It Ar sram
848Battery backuped memory (x68k)
849. It Ar ss#
850SCSI scanner, see
851.Xr \&ss 4
852. It Ar stic#
853PixelStamp interface chip
854. It Ar sysmon
855System Monitoring hardware, see
856.Xr \&envsys 4
857. It Ar tap#
858Virtual Ethernet device, see
859.Xr \&tap 4
860. It Ar tun#
861Network tunnel driver, see
862.Xr \&tun 4
863. It Ar twa
8643ware Apache control interface, see
865.Xr \&twa 4
866. It Ar twe
8673ware Escalade control interface, see
868.Xr \&twe 4
869. It Ar uk#
870Unknown SCSI device, see
871.Xr \&uk 4
872. It Ar veriexec
873Veriexec fingerprint loader, see
874.Xr \&veriexec 4
875. It Ar video#
876Video capture devices, see
877.Xr \&video 4
878. It Ar view#
879Generic interface to graphic displays (Amiga)
880. It Ar wsfont#
881Console font control, see
882.Xr \&wsfont 4
883. It Ar wsmux#
884wscons event multiplexor, see
885.Xr \&wsmux 4
886. It Ar xenevt
887Xen event interface
888. El
889.It iSCSI communication devices
890. Bl -tag -width 0123456789 -compact
891. It Ar iscsi#
892ISCSI driver and /sbin/iscsid communication
893. El
894.It Trusted Computing devices
895. Bl -tag -width 0123456789 -compact
896. It Ar tpm
897Trusted Platform Module, see
898.Xr \&tpm 4
899. El
900.It Debugging and tracing
901. Bl -tag -width 0123456789 -compact
902. It Ar dtrace
903Dynamic tracing framework
904. El
905.El
906.Sh ENVIRONMENT
907The following environment variables affect the execution of
908.Nm :
909.Pp
910.Bl -tag -width indent
911.It Ev MAKEDEV_AS_LIBRARY
912If this is set, then
913.Nm
914will define several shell functions and then return,
915ignoring all its command line options and arguments.
916This is used to enable
917.Xr MAKEDEV.local 8
918to use the shell functions defined in
919.Nm .
920.El
921.Sh FILES
922.Bl -tag -width "/dev/MAKEDEV.local" -compact
923.It Pa /dev
924special device files directory
925.It Pa /dev/MAKEDEV
926script described in this man page
927.It Pa /dev/MAKEDEV.local
928script for site-specific devices
929.El
930.Sh DIAGNOSTICS
931If the script reports an error that is difficult to understand,
932you can get more debugging output by using
933.Dl Ic sh Fl x Ar MAKEDEV Ar argument .
934.Sh SEE ALSO
935.Xr config 1 ,
936.Xr pax 1 ,
937.Xr intro 4 ,
938.Xr diskless 8 ,
939.Xr init 8 ,
940.Xr MAKEDEV.local 8 ,
941.Xr mknod 8 ,
942.Xr mount_mfs 8 ,
943.Xr mount_tmpfs 8 ,
944.Xr mtree 8
945.Sh HISTORY
946The
947.Nm
948command appeared in
949.Bx 4.2 .
950The
951.Fl f ,
952.Fl m ,
953and
954.Fl s
955options were added in
956.Nx 2.0 .
957The
958.Fl p ,
959.Fl t ,
960and
961.Fl M
962options were added in
963.Nx 5.0 .
964The ability to be used as a function library was added in
965.Nx 5.0 .
966.Sh BUGS
967The
968.Fl f
969option is not compatible with the use of
970.Xr mtree 8
971or
972.Xr pax 1 .
973.Sh NOTES
974Not all devices listed in this manpage are supported on all platforms.
975.Pp
976This man page is generated automatically from the same sources
977as
978.Pa /dev/MAKEDEV ,
979in which the device files are not always sorted, which may result
980in an unusual (non-alphabetical) order.
981.Pp
982In order to allow a diskless
983.Nx
984client to obtain its
985.Pa /dev
986directory from a file server running a foreign operating system,
987one of the following techniques may be useful to populate
988a directory of device nodes on the foreign server:
989.Bl -bullet
990.It
991If the foreign server is sufficiently similar to
992.Nx ,
993run
994.Nm
995in an appropriate directory of the foreign server,
996using the
997.Fl m
998flag to refer to a script that converts from command line
999arguments that would be usable with the
1000.Nx
1001.Xr mknod 8
1002command to the equivalent commands for the foreign server.
1003.It
1004Run
1005.Nm
1006with the
1007.Fl s
1008flag to generate an
1009.Xr mtree 8
1010specification file; this can be done on any host with a
1011POSIX-compliant shell and a few widely-available utilities.
1012Use the
1013.Xr pax 1
1014command with the
1015.Fl w Fl M
1016flags to convert the
1017.Xr mtree 8
1018specification file into an archive
1019in a format that supports device nodes
1020(such as
1021.Ar ustar
1022format);
1023this can be done on a
1024.Nx
1025host, or can be done in a cross-build environment using
1026.Sy TOOLDIR Ns Pa /bin/nbpax .
1027Finally, use appropriate tools on the foreign server
1028to unpack the archive and create the device nodes.
1029.El
1030