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.46 2017/07/10 08:41:35 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 July 9, 2017 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), see 433.Xr \&scc 4 434. It Ar ttyA# 435Mfc serial ports (amiga) 436. It Ar ttyB# 437Msc serial ports (amiga) 438. It Ar ttyC# 439Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured. 440. It Ar ttyA0 4418530 Channel A (formerly ser02) (atari) 442. It Ar ttyA1 4438530 Channel B (formerly mdm02) (atari) 444. It Ar ttyB0 445UART on first 68901 (formerly mdm01) (atari) 446. It Ar ixpcom 447IXP12x0 COM ports 448. It Ar epcom 449EP93xx COM ports 450. It Ar plcom 451ARM PL01[01] serial ports 452. It Ar wmcom 453EPOC Windermere COM ports 454. It Ar ttyM? 455HP200/300 4 port serial mux interface (hp300) 456. It Ar ttya 457``ttya'' system console (luna68k) 458. It Ar ttyb 459Second system serial port (luna68k) 460. It Ar tty# 461Onboard 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 462.Xr \&tty 4 463. It Ar dc# 464PMAX 4 channel serial interface (kbd, mouse, modem, printer) 465. It Ar scc# 46682530 serial interface (pmax), see 467.Xr \&scc 4 468. It Ar ttyZ# 469Zilog 8530 (``zstty'') serial ports, see 470.Xr \&zstty 4 471. It Ar tty[abcd] 472Built-in serial ports (sparc) 473. It Ar tty# 474Z88530 serial controllers (sparc64), see 475.Xr \&tty 4 476. It Ar ttyh# 477SAB82532 serial controllers (sparc64), see 478.Xr \&sparc64/sab 4 479. It Ar tty[a-j] 480Built-in serial ports (sun2, sun3) 481. It Ar ttyC? 482pccons (arc) 483. It Ar dz# 484UNIBUS DZ11 and DZ32 (vax), see 485.Xr \&emips/dz 4 , 486.Xr \&vax/dz 4 487. It Ar dh# 488UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see 489.Xr \&vax/dh 4 490. It Ar dmf# 491UNIBUS DMF32 (vax), see 492.Xr \&vax/dmf 4 493. It Ar dhu# 494UNIBUS DHU11 (vax), see 495.Xr \&vax/dhu 4 496. It Ar dmz# 497UNIBUS DMZ32 (vax), see 498.Xr \&vax/dmz 4 499. It Ar dl# 500UNIBUS DL11 (vax), see 501.Xr \&vax/dl 4 502. It Ar xencons 503Xen virtual console 504. El 505.It Terminal multiplexors : 506. Bl -tag -width 0123456789 -compact 507. It Ar dc# 5084 channel serial interface (keyboard, mouse, modem, printer) 509. It Ar dh# 510UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see 511.Xr \&vax/dh 4 512. It Ar dhu# 513UNIBUS DHU11, see 514.Xr \&vax/dhu 4 515. It Ar dl# 516UNIBUS DL11, see 517.Xr \&vax/dl 4 518. It Ar dmf# 519UNIBUS DMF32, see 520.Xr \&vax/dmf 4 521. It Ar dmz# 522UNIBUS DMZ32, see 523.Xr \&vax/dmz 4 524. It Ar dz# 525UNIBUS DZ11 and DZ32, see 526.Xr \&emips/dz 4 , 527.Xr \&vax/dz 4 528. It Ar scc# 52982530 serial interface, see 530.Xr \&scc 4 531. El 532.It Call units : 533. Bl -tag -width 0123456789 -compact 534. It Ar dn# 535UNIBUS DN11 and emulations (e.g. Able Quadracall), see 536.Xr \&vax/dn 4 537. El 538.It Pseudo terminals : 539. Bl -tag -width 0123456789 -compact 540. It Ar ptm 541Pty multiplexor device, and pts directory, see 542.Xr \&ptm 4 543. It Ar pty# 544Set of 16 master and slave pseudo terminals, see 545.Xr \&pty 4 546. It Ar opty 547First 16 ptys, to save inodes on install media 548. It Ar ipty 549First 2 ptys, for install media use only 550. El 551.It Printers : 552. Bl -tag -width 0123456789 -compact 553. It Ar arcpp# 554Archimedes parallel port 555. It Ar lpt# 556Stock lp, see 557.Xr \&lpt 4 , 558.Xr \&acorn32/lpt 4 , 559.Xr \&mvme68k/lpt 4 , 560.Xr \&x86/lpt 4 561. It Ar lpa# 562Interruptless lp 563. It Ar par# 564Amiga motherboard parallel port 565. It Ar cpi# 566Macintosh Nubus CSI parallel printer card, see 567.Xr \&mac68k/cpi 4 568. El 569.It USB devices : 570. Bl -tag -width 0123456789 -compact 571. It Ar usb# 572USB control devices, see 573.Xr \&usb 4 574. It Ar uhid# 575USB generic HID devices, see 576.Xr \&uhid 4 577. It Ar ulpt# 578USB printer devices, see 579.Xr \&ulpt 4 580. It Ar ugen# 581USB generic devices, see 582.Xr \&ugen 4 583. It Ar urio# 584USB Diamond Rio 500 devices, see 585.Xr \&urio 4 586. It Ar uscanner# 587USB scanners, see 588.Xr \&uscanner 4 589. It Ar ttyHS# 590USB Option N.V. modems 591. It Ar ttyU# 592USB modems, see 593.Xr \&ucom 4 594. It Ar ttyY# 595USB serial adapters 596. El 597.It ISDN devices : 598. Bl -tag -width 0123456789 -compact 599. It Ar isdn 600Communication between userland isdnd and kernel, see 601.Xr \&isdn 4 602. It Ar isdnctl 603Control device, see 604.Xr \&isdnctl 4 605. It Ar isdnbchan# 606Raw b-channel access, see 607.Xr \&isdnbchan 4 608. It Ar isdntel# 609Telephony device, see 610.Xr \&isdntel 4 611. It Ar isdnteld# 612Telephony dialout device 613. It Ar isdntrc# 614Trace device, see 615.Xr \&isdntrc 4 616. El 617.It Video devices : 618. Bl -tag -width 0123456789 -compact 619. It Ar bwtwo# 620Monochromatic frame buffer, see 621.Xr \&sparc/bwtwo 4 , 622.Xr \&sun2/bwtwo 4 , 623.Xr \&sun3/bwtwo 4 624. It Ar cgtwo# 6258-bit color frame buffer, see 626.Xr \&sparc/cgtwo 4 , 627.Xr \&sun3/cgtwo 4 628. It Ar cgthree# 6298-bit color frame buffer, see 630.Xr \&sparc/cgthree 4 631. It Ar cgfour# 6328-bit color frame buffer, see 633.Xr \&sparc/cgfour 4 , 634.Xr \&sun3/cgfour 4 635. It Ar cgsix# 636Accelerated 8-bit color frame buffer, see 637.Xr \&sparc/cgsix 4 638. It Ar cgeight# 63924-bit color frame buffer, see 640.Xr \&sparc/cgeight 4 641. It Ar etvme 642Tseng et-compatible cards on VME (atari) 643. It Ar ik# 644UNIBUS interface to Ikonas frame buffer, see 645.Xr \&vax/ik 4 646. It Ar leo 647Circad Leonardo VME-bus true color (atari) 648. It Ar ps# 649UNIBUS interface to Picture System 2, see 650.Xr \&vax/ps 4 651. It Ar qv# 652QVSS (MicroVAX) display 653. It Ar tcx# 654Accelerated 8/24-bit color frame buffer, see 655.Xr \&sparc/tcx 4 656. El 657.It Maple bus devices : 658. Bl -tag -width 0123456789 -compact 659. It Ar maple 660Maple bus control devices, see 661.Xr \&dreamcast/maple 4 662. It Ar mlcd# 663Maple bus LCD devices, see 664.Xr \&dreamcast/mlcd 4 665. It Ar mmem# 666Maple bus storage devices, see 667.Xr \&dreamcast/mmem 4 668. El 669.It IEEE1394 bus devices : 670. Bl -tag -width 0123456789 -compact 671. It Ar fw# 672IEEE1394 bus generic node access devices 673. It Ar fwmem# 674IEEE1394 bus physical memory of the remote node access devices 675. El 676.It Special purpose devices : 677. Bl -tag -width 0123456789 -compact 678. It Ar ad# 679UNIBUS interface to Data Translation A/D converter, see 680.Xr \&vax/ad 4 681. It Ar agp# 682AGP GART devices, see 683.Xr \&agp 4 684. It Ar altq 685ALTQ control interface, see 686.Xr \&altq 4 687. It Ar amr# 688AMI MegaRaid control device, see 689.Xr \&amr 4 690. It Ar apm 691Power management device, see 692.Xr \&i386/apm 4 693. It Ar audio# 694Audio devices, see 695.Xr \&audio 4 696. It Ar bell# 697OPM bell device (x68k) 698. It Ar bktr 699Brooktree 848/849/878/879 based TV cards, see 700.Xr \&bktr 4 701. It Ar bpf 702Packet filter, see 703.Xr \&bpf 4 704. It Ar bthub 705Bluetooth Device Hub control interface, see 706.Xr \&bthub 4 707. It Ar cfs# 708Coda file system device 709. It Ar ch# 710SCSI media changer, see 711.Xr \&ch 4 712. It Ar cir# 713Consumer IR, see 714.Xr \&cir 4 715. It Ar clockctl 716Clock control for non root users, see 717.Xr \&clockctl 4 718. It Ar cpuctl 719CPU control 720. It Ar crypto 721Hardware crypto access driver, see 722.Xr \&crypto 4 723. It Ar dmoverio 724Hardware-assisted data movers, see 725.Xr \&dmoverio 4 726. It Ar dpt# 727DPT/Adaptec EATA RAID management interface, see 728.Xr \&dpt 4 729. It Ar dpti# 730DPT/Adaptec I2O RAID management interface, see 731.Xr \&dpti 4 732. It Ar drm# 733Direct Rendering Manager interface, see 734.Xr \&drm 4 735. It Ar dtv# 736Digital TV interface, see 737.Xr \&dtv 4 738. It Ar fb# 739PMAX generic framebuffer pseudo-device 740. It Ar fd 741File descriptors 742. It Ar grf# 743Graphics frame buffer device, see 744.Xr \&amiga/grf 4 745. It Ar hdaudio# 746High Definition audio control device, see 747.Xr \&hdaudio 4 748. It Ar hdmicec# 749HDMI CEC devices 750. It Ar hil 751HP300 HIL input devices, see 752.Xr \&hil 4 753. It Ar icp 754ICP-Vortex/Intel RAID control interface, see 755.Xr \&icp 4 756. It Ar iic# 757IIC bus device, see 758.Xr \&iic 4 759. It Ar io 760X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see 761.Xr \&hppa/io 4 , 762.Xr \&i386/io 4 763. It Ar iop# 764I2O IOP control interface, see 765.Xr \&iop 4 766. It Ar ipl 767IP Filter 768. It Ar irframe# 769IrDA physical frame, see 770.Xr \&irframe 4 771. It Ar ite# 772Terminal emulator interface to HP300 graphics devices, see 773.Xr \&amiga/ite 4 774. It Ar joy# 775Joystick device, see 776.Xr \&joy 4 777. It Ar kttcp 778Kernel ttcp helper device, see 779.Xr \&kttcp 4 780. It Ar lockstat 781Kernel locking statistics 782. It Ar magma# 783Magma multiport serial/parallel cards, see 784.Xr \&sparc/magma 4 785. It Ar midi# 786MIDI, see 787.Xr \&midi 4 788. It Ar mfi# 789LSI MegaRAID/MegaSAS control interface, see 790.Xr \&mfi 4 791. It Ar mlx# 792Mylex DAC960 control interface, see 793.Xr \&mlx 4 794. It Ar mly# 795Mylex AcceleRAID/eXtremeRAID control interface, see 796.Xr \&mly 4 797. It Ar np# 798UNIBUS Ethernet co-processor interface, for downloading., see 799.Xr \&vax/np 4 800. It Ar npf 801NPF packet filter 802. It Ar nsmb# 803SMB requester, see 804.Xr \&nsmb 4 805. It Ar nvme# 806Non-Volatile Memory Host Controller Interface device driver, see 807.Xr \&nvme 4 808. It Ar nvme#ns* 809Non-Volatile Memory namespace 810. It Ar openfirm 811OpenFirmware accessor 812. It Ar pad# 813Pseudo-audio device driver, see 814.Xr \&pad 4 815. It Ar pci# 816PCI bus access devices, see 817.Xr \&pci 4 818. It Ar pf 819PF packet filter 820. It Ar putter 821Pass-to-Userspace Transporter 822. It Ar px# 823PixelStamp Xserver access, see 824.Xr \&px 4 825. It Ar radio# 826Radio devices, see 827.Xr \&radio 4 828. It Ar random 829Random number generator, see 830.Xr \&rnd 4 831. It Ar rtc# 832RealTimeClock, see 833.Xr \&atari/rtc 4 , 834.Xr \&evbppc/rtc 4 , 835.Xr \&hp300/rtc 4 836. It Ar satlink# 837PlanetConnect satellite receiver driver 838. It Ar scsibus# 839SCSI busses, see 840.Xr \&scsi 4 841. It Ar se# 842SCSI Ethernet, see 843.Xr \&se 4 844. It Ar ses# 845SES/SAF-TE SCSI Devices, see 846.Xr \&ses 4 847. It Ar speaker 848PC speaker, see 849.Xr \&speaker 4 850. It Ar sram 851Battery backuped memory (x68k) 852. It Ar ss# 853SCSI scanner, see 854.Xr \&ss 4 855. It Ar stic# 856PixelStamp interface chip 857. It Ar sysmon 858System Monitoring hardware, see 859.Xr \&envsys 4 860. It Ar tap# 861Virtual Ethernet device, see 862.Xr \&tap 4 863. It Ar tun# 864Network tunnel driver, see 865.Xr \&tun 4 866. It Ar twa 8673ware Apache control interface, see 868.Xr \&twa 4 869. It Ar twe 8703ware Escalade control interface, see 871.Xr \&twe 4 872. It Ar uk# 873Unknown SCSI device, see 874.Xr \&uk 4 875. It Ar veriexec 876Veriexec fingerprint loader, see 877.Xr \&veriexec 4 878. It Ar video# 879Video capture devices, see 880.Xr \&video 4 881. It Ar view# 882Generic interface to graphic displays (Amiga) 883. It Ar wsfont# 884Console font control, see 885.Xr \&wsfont 4 886. It Ar wsmux# 887wscons event multiplexor, see 888.Xr \&wsmux 4 889. It Ar xenevt 890Xen event interface 891. El 892.It iSCSI communication devices 893. Bl -tag -width 0123456789 -compact 894. It Ar iscsi# 895ISCSI driver and /sbin/iscsid communication 896. El 897.It Trusted Computing devices 898. Bl -tag -width 0123456789 -compact 899. It Ar tpm 900Trusted Platform Module, see 901.Xr \&tpm 4 902. El 903.It Debugging and tracing 904. Bl -tag -width 0123456789 -compact 905. It Ar dtrace 906Dynamic tracing framework 907. El 908.El 909.Sh ENVIRONMENT 910The following environment variables affect the execution of 911.Nm : 912.Pp 913.Bl -tag -width indent 914.It Ev MAKEDEV_AS_LIBRARY 915If this is set, then 916.Nm 917will define several shell functions and then return, 918ignoring all its command line options and arguments. 919This is used to enable 920.Xr MAKEDEV.local 8 921to use the shell functions defined in 922.Nm . 923.El 924.Sh FILES 925.Bl -tag -width "/dev/MAKEDEV.local" -compact 926.It Pa /dev 927special device files directory 928.It Pa /dev/MAKEDEV 929script described in this man page 930.It Pa /dev/MAKEDEV.local 931script for site-specific devices 932.El 933.Sh DIAGNOSTICS 934If the script reports an error that is difficult to understand, 935you can get more debugging output by using 936.Dl Ic sh Fl x Ar MAKEDEV Ar argument . 937.Sh SEE ALSO 938.Xr config 1 , 939.Xr pax 1 , 940.Xr intro 4 , 941.Xr diskless 8 , 942.Xr init 8 , 943.Xr MAKEDEV.local 8 , 944.Xr mknod 8 , 945.Xr mount_mfs 8 , 946.Xr mount_tmpfs 8 , 947.Xr mtree 8 948.Sh HISTORY 949The 950.Nm 951command appeared in 952.Bx 4.2 . 953The 954.Fl f , 955.Fl m , 956and 957.Fl s 958options were added in 959.Nx 2.0 . 960The 961.Fl p , 962.Fl t , 963and 964.Fl M 965options were added in 966.Nx 5.0 . 967The ability to be used as a function library was added in 968.Nx 5.0 . 969.Sh BUGS 970The 971.Fl f 972option is not compatible with the use of 973.Xr mtree 8 974or 975.Xr pax 1 . 976.Sh NOTES 977Not all devices listed in this manpage are supported on all platforms. 978.Pp 979This man page is generated automatically from the same sources 980as 981.Pa /dev/MAKEDEV , 982in which the device files are not always sorted, which may result 983in an unusual (non-alphabetical) order. 984.Pp 985In order to allow a diskless 986.Nx 987client to obtain its 988.Pa /dev 989directory from a file server running a foreign operating system, 990one of the following techniques may be useful to populate 991a directory of device nodes on the foreign server: 992.Bl -bullet 993.It 994If the foreign server is sufficiently similar to 995.Nx , 996run 997.Nm 998in an appropriate directory of the foreign server, 999using the 1000.Fl m 1001flag to refer to a script that converts from command line 1002arguments that would be usable with the 1003.Nx 1004.Xr mknod 8 1005command to the equivalent commands for the foreign server. 1006.It 1007Run 1008.Nm 1009with the 1010.Fl s 1011flag to generate an 1012.Xr mtree 8 1013specification file; this can be done on any host with a 1014POSIX-compliant shell and a few widely-available utilities. 1015Use the 1016.Xr pax 1 1017command with the 1018.Fl w Fl M 1019flags to convert the 1020.Xr mtree 8 1021specification file into an archive 1022in a format that supports device nodes 1023(such as 1024.Ar ustar 1025format); 1026this can be done on a 1027.Nx 1028host, or can be done in a cross-build environment using 1029.Sy TOOLDIR Ns Pa /bin/nbpax . 1030Finally, use appropriate tools on the foreign server 1031to unpack the archive and create the device nodes. 1032.El 1033