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