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