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.48 2018/05/20 14:08:33 thorpej 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 May 11, 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 gpiopps# 7401PPS signals on GPIO pins, see 741.Xr \&gpiopps 4 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