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