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