1999-09-18 04:31:01 +04:00
. \" *** ------------------------------------------------------------------
. \" *** This file was generated automatically
2003-10-25 00:26:57 +04:00
. \" *** from src/etc/MAKEDEV.tmpl and
2001-04-16 12:11:16 +04:00
. \" *** src/share/man/man8/MAKEDEV.8.template
. \" ***
1999-09-18 04:31:01 +04:00
. \" *** DO NOT EDIT - any changes will be lost!!!
. \" *** ------------------------------------------------------------------
. \"
2007-12-09 11:46:57 +03:00
. \" $NetBSD: MAKEDEV.8,v 1.25 2007/12/09 08:46:57 apb Exp $
1997-10-19 17:02:43 +04:00
. \"
2003-10-25 00:26:57 +04:00
. \" Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
2001-04-16 12:11:16 +04:00
. \" All rights reserved.
. \"
. \" This code is derived from software contributed to The NetBSD Foundation
. \" by Thomas Klausner.
1993-03-21 12:45:37 +03:00
. \"
. \" Redistribution and use in source and binary forms, with or without
. \" modification, are permitted provided that the following conditions
. \" are met:
. \" 1. Redistributions of source code must retain the above copyright
. \" notice, this list of conditions and the following disclaimer.
. \" 2. Redistributions in binary form must reproduce the above copyright
. \" notice, this list of conditions and the following disclaimer in the
. \" documentation and/or other materials provided with the distribution.
. \" 3. All advertising materials mentioning features or use of this software
. \" must display the following acknowledgement:
2001-04-16 12:11:16 +04:00
. \" This product includes software developed by the NetBSD
. \" Foundation, Inc. and its contributors.
. \" 4. Neither the name of The NetBSD Foundation nor the names of its
. \" contributors may be used to endorse or promote products derived
. \" from this software without specific prior written permission.
1993-03-21 12:45:37 +03:00
. \"
2001-04-16 12:11:16 +04:00
. \" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
. \" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
. \" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
. \" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
. \" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
. \" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
. \" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
. \" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
. \" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
. \" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
. \" POSSIBILITY OF SUCH DAMAGE.
1993-03-21 12:45:37 +03:00
. \"
2007-12-09 11:46:57 +03:00
.Dd December 9 , 2007
2003-10-25 00:26:57 +04:00
.Dt MAKEDEV 8
2001-04-16 12:11:16 +04:00
.Os
1996-11-05 08:18:01 +03:00
.Sh NAME
2001-04-16 12:11:16 +04:00
.Nm MAKEDEV
1996-11-05 08:18:01 +03:00
.Nd create system and device special files
.Sh SYNOPSIS
2001-04-16 12:11:16 +04:00
.Nm
2007-05-19 18:16:09 +04:00
.Op Fl fMs
2003-12-21 21:02:06 +03:00
.Op Fl m Ar mknod
2007-03-11 18:54:10 +03:00
.Op Fl p Ar pax
.Bro Ar special | device Brc Op Ar ...
1996-11-05 08:18:01 +03:00
.Sh DESCRIPTION
2001-04-16 12:11:16 +04:00
.Nm
is used to create system and device special files.
As arguments it takes the names of known devices, like
.Ar sd0 ,
or of special targets, like
.Pa all
or
.Pa std ,
2007-02-27 01:37:57 +03:00
which create a collection of device special files,
or
.Pa local ,
which invokes
.Xr MAKEDEV.local 8
with the
.Pa all
argument.
2001-04-16 12:11:16 +04:00
.Pp
The script is in
.Pa /dev/MAKEDEV
and must be called from the
1996-11-05 08:18:01 +03:00
.Pa /dev
2001-04-16 12:11:16 +04:00
directory.
2002-03-14 04:38:33 +03:00
For the creation of the devices,
.Xr mknod 8
is used, which can only be used for creating devices by the
super-user.
2003-12-21 21:02:06 +03:00
The
.Xr mknod 8
used can be overridden by the
.Fl m
flag.
.Pp
Supported options are:
.Bl -tag -width XmXmknodXX
.It Fl f
Force permissions to be updated on existing devices.
2007-12-09 11:46:57 +03:00
This works only if
.Xr mknod 8
is used; it is not compatible with the
.Fl p
or
.Fl s
options.
2007-03-03 11:10:09 +03:00
.It Fl M
Create a memory filesystem, union mounted over the current directory,
to contain the device special files.
2007-12-09 11:46:57 +03:00
.Pp
2007-03-11 18:54:10 +03:00
If the
.Fl M
flag is specified more than once, then
.Nm
2007-12-09 11:46:57 +03:00
assumes that it is being invoked from
.Xr init 1
to populate a memory file system for
.Pa /dev .
In this case,
.Nm
2007-03-11 18:54:10 +03:00
will also redirect its output to the system console.
2003-12-21 21:02:06 +03:00
.It Fl m Ar mknod
Name of
.Xr mknod 8
program.
[Usually, $TOOL_MKNOD or mknod.]
2007-03-11 18:54:10 +03:00
.It Fl p Ar pax
Name of
.Xr pax 1
program.
2007-12-09 11:46:57 +03:00
[Usually, $TOOL_PAX or mknod.]
2007-03-11 18:54:10 +03:00
If this is specified, then instead of creating device nodes
one by one using
.Xr mknod 8 ,
.Nm
will create device nodes all at once using
.Xr pax 1 .
This is more efficient when many device nodes are involved.
2003-12-21 21:02:06 +03:00
.It Fl s
Generate
.Xr mtree 8
specfile instead of creating devices.
.El
1996-11-05 08:18:01 +03:00
.Pp
2007-12-09 11:46:57 +03:00
The
.Fl m , Fl p ,
and
.Fl s
flags are mutually exclusive.
If none of these flags is specified, then
.Nm
will use the
.Xr pax 1
command if it appears to be usable, falling back to the
.Xr mknod 8
command if necessary.
.Pp
2001-04-16 12:11:16 +04:00
The special targets supported on
2003-10-25 00:26:57 +04:00
.Nx
2001-04-16 12:11:16 +04:00
are:
1999-09-18 04:31:01 +04:00
.Pp
. \" @@@SPECIAL@@@
.Bl -tag -width 01234567 -compact
.It Ar all
Makes all known devices, including local devices. Tries to make the 'standard' number of each type.
2003-04-24 16:15:58 +04:00
.It Ar init
A set of devices that is used for MFS /dev by init. May be equal to ``all''.
1999-09-18 04:31:01 +04:00
.It Ar floppy
Devices to be put on install floppies
.It Ar ramdisk
Devices to be put into INSTALL kernel ramdisks.
.It Ar std
Standard devices
.It Ar local
Configuration specific devices
2004-01-14 23:44:48 +03:00
.It Ar wscons
Make wscons devices
1999-09-18 04:31:01 +04:00
.It Ar usbs
Make USB devices
2002-03-25 01:23:31 +03:00
.It Ar isdns
2001-01-08 09:22:42 +03:00
Make ISDN devices
1999-09-18 04:31:01 +04:00
.El
1996-11-05 08:18:01 +03:00
.Pp
2001-04-16 12:11:16 +04:00
Please note that any hash marks
.Pq Dq #
in the following list of supported device targets must be replaced by
digits when calling
2003-02-25 13:34:36 +03:00
.Nm :
1996-11-05 08:18:01 +03:00
.Pp
1999-09-18 04:31:01 +04:00
. \" @@@DEVICES@@@
.Bl -tag -width 01
2001-09-08 05:32:36 +04:00
.It Tapes :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
. It Ar st#
SCSI tapes, see
2001-06-26 06:28:47 +04:00
.Xr \& st 4
2003-10-25 00:26:57 +04:00
. It Ar wt#
QIC-interfaced (e.g. not SCSI) 3M cartridge tape, see
.Xr \& wt 4
. It Ar ht#
2003-10-25 03:44:15 +04:00
MASSBUS TM03 and TU??, see
.Xr \& vax/ht 4
2003-10-25 00:26:57 +04:00
. It Ar mt#
2003-10-25 03:44:15 +04:00
MSCP tapes (e.g. TU81, TK50), see
.Xr \& vax/mt 4
2003-10-25 00:26:57 +04:00
. It Ar tm#
2003-10-25 03:44:15 +04:00
UNIBUS TM11 and TE10 emulations (e.g. Emulex TC-11), see
.Xr \& vax/tm 4
2003-10-25 00:26:57 +04:00
. It Ar ts#
2003-10-25 03:44:15 +04:00
UNIBUS TS11, see
.Xr \& vax/ts 4
2003-10-25 00:26:57 +04:00
. It Ar ut#
2003-10-25 03:44:15 +04:00
UNIBUS TU45 emulations (e.g. si 9700), see
.Xr \& vax/ut 4
2003-10-25 00:26:57 +04:00
. It Ar uu#
2003-10-25 03:44:15 +04:00
TU58 cassettes on DL11 controller, see
.Xr \& vax/uu 4
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It Disks :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
. It Ar ccd#
2003-03-30 21:51:44 +04:00
Concatenated disk devices, see
2001-06-26 06:28:47 +04:00
.Xr \& ccd 4
2003-10-25 00:26:57 +04:00
. It Ar cd#
SCSI or ATAPI CD-ROM, see
.Xr \& cd 4
2002-10-04 23:04:17 +04:00
. It Ar cgd#
Cryptographic disk devices, see
.Xr \& cgd 4
1999-09-18 04:31:01 +04:00
. It Ar raid#
RAIDframe disk devices, see
2001-06-26 06:28:47 +04:00
.Xr \& raid 4
2003-10-25 00:26:57 +04:00
. It Ar sd#
SCSI disks, see
.Xr \& sd 4
. It Ar wd#
``winchester'' disk drives (ST506,IDE,ESDI,RLL,...), see
.Xr \& wd 4
. It Ar bmd#
2003-10-25 03:44:15 +04:00
Nereid bank memory disks, see
.Xr \& x68k/bmd 4
2003-10-25 00:26:57 +04:00
. It Ar ed#
2003-10-25 03:44:15 +04:00
IBM PS/2 ESDI disk devices, see
.Xr \& edc 4
2003-10-25 00:26:57 +04:00
. It Ar fd#
2003-10-27 00:34:49 +03:00
``floppy'' disk drives (3 1/2", 5 1/4"), see
2003-10-25 03:44:15 +04:00
.Xr \& amiga/fdc 4 ,
2007-05-19 18:16:09 +04:00
.Xr \& i386/fdc 4 ,
.Xr \& sparc64/fdc 4
2003-12-10 14:40:11 +03:00
. It Ar fss#
Files system snapshot devices, see
.Xr \& fss 4
2003-10-25 00:26:57 +04:00
. It Ar gdrom#
2003-10-25 03:44:15 +04:00
Dreamcast ``gigadisc'' CD-ROM drive, see
.Xr \& dreamcast/gdrom 4
2003-10-25 00:26:57 +04:00
. It Ar hk#
2003-10-25 03:44:15 +04:00
UNIBUS RK06 and RK07, see
.Xr \& vax/hk 4
2003-10-25 00:26:57 +04:00
. It Ar hp#
2003-10-25 03:44:15 +04:00
MASSBUS RM??, see
.Xr \& vax/hp 4
2000-12-06 00:25:35 +03:00
. It Ar ld#
2001-01-06 16:53:18 +03:00
Logical disk devices (e.g., hardware RAID), see
2001-06-26 06:28:47 +04:00
.Xr \& ld 4
2003-10-25 00:26:57 +04:00
. It Ar mcd#
Mitsumi CD-ROM, see
.Xr \& mcd 4
. It Ar md#
Memory pseudo-disk devices, see
.Xr \& md 4
. It Ar ofdisk#
OpenFirmware disk devices
. It Ar ra#
MSCP disks (RA??, RD??)
. It Ar rb#
730 IDC w/ RB80 and/or RB02
. It Ar rd#
2003-10-25 03:44:15 +04:00
HDC9224 RD disks on VS2000, see
.Xr \& hp300/rd 4
2003-10-25 00:26:57 +04:00
. It Ar rl#
2003-10-25 03:44:15 +04:00
UNIBUS RL02, see
.Xr \& vax/rl 4
2003-10-25 00:26:57 +04:00
. It Ar rx#
MSCP floppy disk (RX33/50/...)
. It Ar up#
2003-10-25 03:44:15 +04:00
Other UNIBUS devices (e.g. on Emulex SC-21V controller), see
.Xr \& vax/up 4
2003-10-25 00:26:57 +04:00
. It Ar vnd#
``file'' pseudo-disks, see
.Xr \& vnd 4
2005-05-17 18:01:48 +04:00
. It Ar xbd#
Xen virtual disks
2003-10-25 00:26:57 +04:00
. It Ar xd#
2005-05-17 18:01:48 +04:00
Xylogic 753/7053 disks, see
.Xr \& sparc/xd 4
2003-10-25 00:26:57 +04:00
. It Ar xy#
2005-05-17 18:01:48 +04:00
Xylogic 450/451 disks, see
.Xr \& sparc/xy 4
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It Pointing devices :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
. It Ar wsmouse#
2003-03-30 21:51:44 +04:00
wscons mouse events, see
2001-06-26 06:28:47 +04:00
.Xr \& wsmouse 4
2003-10-25 00:26:57 +04:00
. It Ar lms#
2003-10-25 03:44:15 +04:00
Logitech bus mouse, see
.Xr \& i386/lms 4
2003-10-25 00:26:57 +04:00
. It Ar mms#
2003-10-25 03:44:15 +04:00
Microsoft bus mouse, see
.Xr \& dreamcast/mms 4 ,
.Xr \& i386/mms 4
2003-10-25 00:26:57 +04:00
. It Ar qms#
2003-10-25 03:44:15 +04:00
``quadrature mouse'', see
.Xr \& acorn32/qms 4
2003-10-25 00:26:57 +04:00
. It Ar pms#
2005-05-17 18:01:48 +04:00
PS/2 mouse
2003-10-25 00:26:57 +04:00
. It Ar mouse
Mouse (provides events, for X11)
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It Keyboard devices :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
. It Ar wskbd#
2003-03-30 21:51:44 +04:00
wscons keyboard events, see
2001-06-26 06:28:47 +04:00
.Xr \& wskbd 4
2003-10-25 00:26:57 +04:00
. It Ar kbd
2003-10-25 03:44:15 +04:00
Raw keyboard (provides events, for X11), see
.Xr \& sparc/kbd 4 ,
.Xr \& sun2/kbd 4 ,
.Xr \& sun3/kbd 4
2003-10-25 00:26:57 +04:00
. It Ar kbdctl
Keyboard control
1999-09-18 04:31:01 +04:00
. El
2003-10-25 00:26:57 +04:00
.It Terminals/Console ports :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
2003-10-25 00:26:57 +04:00
. It Ar tty[01]#
Standard serial ports, see
.Xr \& tty 4
. It Ar tty0#
SB1250 (``sbscn'') serial ports (sbmips), see
2001-06-26 06:28:47 +04:00
.Xr \& tty 4
2003-10-25 00:26:57 +04:00
. It Ar ttyE#
wscons - Workstation console (``wscons'') glass-tty emulators
. It Ar ttyCZ?
2003-10-25 03:44:15 +04:00
Cyclades-Z multiport serial boards. Each ``unit'' makes 64 ports., see
.Xr \& cz 4
2003-10-25 00:26:57 +04:00
. It Ar ttyCY?
2003-10-25 03:44:15 +04:00
Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports., see
.Xr \& cy 4
2003-10-25 00:26:57 +04:00
. It Ar ttye#
2003-10-25 03:44:15 +04:00
ITE bitmapped consoles, see
.Xr \& amiga/ite 4 ,
.Xr \& hp300/ite 4
2003-10-25 00:26:57 +04:00
. It Ar ttyv0
pccons
. It Ar ttyC?
NS16550 (``com'') serial ports
. It Ar ttyS#
SA1110 serial port (hpcarm)
. It Ar ttyTX?
TX39 internal serial ports (hpcmips)
. It Ar ttyB?
2003-10-25 03:44:15 +04:00
DEC 3000 ZS8530 (``scc'') serial ports (alpha), see
.Xr \& scc 4
2003-10-25 00:26:57 +04:00
. It Ar ttyA#
Mfc serial ports (amiga)
. It Ar ttyB#
Msc serial ports (amiga)
. It Ar ttyC#
Com style serial ports (DraCo, HyperCom) (amiga) On the DraCo, units 0 and 1 are the built-in ``modem'' and ``mouse'' ports, if configured.
. It Ar ttyA0
8530 Channel A (formerly ser02) (atari)
. It Ar ttyA1
8530 Channel B (formerly mdm02) (atari)
. It Ar ttyB0
UART on first 68901 (formerly mdm01) (atari)
. It Ar ixpcom
IXP12x0 COM ports
2005-05-17 18:01:48 +04:00
. It Ar epcom
EP93xx COM ports
2003-11-22 20:36:43 +03:00
. It Ar ttyM?
HP200/300 4 port serial mux interface (hp300)
2003-10-25 00:26:57 +04:00
. It Ar ttya
2003-10-25 03:44:15 +04:00
``ttya'' system console (luna68k)
2003-10-25 00:26:57 +04:00
. It Ar ttyb
Second system serial port (luna68k)
. It Ar tty#
Onboard 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
.Xr \& tty 4
. It Ar dc#
2006-10-23 03:03:48 +04:00
PMAX 4 channel serial interface (kbd, mouse, modem, printer)
2003-10-25 00:26:57 +04:00
. It Ar scc#
82530 serial interface (pmax), see
.Xr \& scc 4
. It Ar ttyZ#
2003-10-25 03:44:15 +04:00
Zilog 8530 (``zstty'') serial ports, see
.Xr \& zstty 4
2003-10-25 00:26:57 +04:00
. It Ar tty[abcd]
Built-in serial ports (sparc)
. It Ar tty#
Z88530 serial controllers (sparc64), see
.Xr \& tty 4
. It Ar ttyh#
2003-10-30 11:25:19 +03:00
SAB82532 serial controllers (sparc64), see
.Xr \& sparc64/sab 4
2003-10-25 00:26:57 +04:00
. It Ar tty[a-j]
Built-in serial ports (sun2, sun3)
. It Ar ttyC?
pccons (arc)
. It Ar dz#
2003-10-25 03:44:15 +04:00
UNIBUS DZ11 and DZ32 (vax), see
.Xr \& vax/dz 4
2003-10-25 00:26:57 +04:00
. It Ar dh#
2003-10-25 03:44:15 +04:00
UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11) (vax), see
.Xr \& vax/dh 4
2003-10-25 00:26:57 +04:00
. It Ar dmf#
2003-10-25 03:44:15 +04:00
UNIBUS DMF32 (vax), see
.Xr \& vax/dmf 4
2003-10-25 00:26:57 +04:00
. It Ar dhu#
2003-10-25 03:44:15 +04:00
UNIBUS DHU11 (vax), see
.Xr \& vax/dhu 4
2003-10-25 00:26:57 +04:00
. It Ar dmz#
2003-10-25 03:44:15 +04:00
UNIBUS DMZ32 (vax), see
.Xr \& vax/dmz 4
2003-10-25 00:26:57 +04:00
. It Ar dl#
2003-10-25 03:44:15 +04:00
UNIBUS DL11 (vax), see
.Xr \& vax/dl 4
2005-05-17 18:01:48 +04:00
. It Ar xencons
Xen virtual console
2003-10-25 00:26:57 +04:00
. El
.It Terminal multiplexors :
. Bl -tag -width 0123456789 -compact
. It Ar dc#
2006-10-23 03:03:48 +04:00
4 channel serial interface (keyboard, mouse, modem, printer)
2003-10-25 00:26:57 +04:00
. It Ar dh#
2003-10-25 03:44:15 +04:00
UNIBUS DH11 and emulations (e.g. Able DMAX, Emulex CS-11), see
.Xr \& vax/dh 4
2003-10-25 00:26:57 +04:00
. It Ar dhu#
2003-10-25 03:44:15 +04:00
UNIBUS DHU11, see
.Xr \& vax/dhu 4
2003-10-25 00:26:57 +04:00
. It Ar dl#
2003-10-25 03:44:15 +04:00
UNIBUS DL11, see
.Xr \& vax/dl 4
2003-10-25 00:26:57 +04:00
. It Ar dmf#
2003-10-25 03:44:15 +04:00
UNIBUS DMF32, see
.Xr \& vax/dmf 4
2003-10-25 00:26:57 +04:00
. It Ar dmz#
2003-10-25 03:44:15 +04:00
UNIBUS DMZ32, see
.Xr \& vax/dmz 4
2003-10-25 00:26:57 +04:00
. It Ar dz#
2003-10-25 03:44:15 +04:00
UNIBUS DZ11 and DZ32, see
.Xr \& vax/dz 4
2003-10-25 00:26:57 +04:00
. It Ar scc#
82530 serial interface, see
.Xr \& scc 4
. El
.It Call units :
. Bl -tag -width 0123456789 -compact
. It Ar dn#
2003-10-25 03:44:15 +04:00
UNIBUS DN11 and emulations (e.g. Able Quadracall), see
.Xr \& vax/dn 4
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It Pseudo terminals :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
2005-05-17 18:01:48 +04:00
. It Ar ptm
Pty multiplexor device., see
.Xr \& ptm 4
1999-09-18 04:31:01 +04:00
. It Ar pty#
2005-05-17 18:01:48 +04:00
Set of 16 master and slave pseudo terminals, see
2001-06-26 06:28:47 +04:00
.Xr \& pty 4
2002-03-14 04:38:33 +03:00
. It Ar opty
First 16 ptys, to save inodes on install media
2003-10-25 00:26:57 +04:00
. It Ar ipty
First 2 ptys, for install media use only
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It Printers :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
2003-10-25 00:26:57 +04:00
. It Ar arcpp#
Archimedes parallel port
1999-09-18 04:31:01 +04:00
. It Ar lpt#
2003-10-25 03:44:15 +04:00
Stock lp, see
2004-01-25 17:00:57 +03:00
.Xr \& lpt 4 ,
2003-10-25 03:44:15 +04:00
.Xr \& acorn32/lpt 4 ,
.Xr \& i386/lpt 4 ,
.Xr \& mvme68k/lpt 4 ,
.Xr \& pc532/lpt 4
1999-09-18 04:31:01 +04:00
. It Ar lpa#
Interruptless lp
2003-10-25 00:26:57 +04:00
. It Ar par#
Amiga motherboard parallel port
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It USB devices :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
. It Ar usb#
USB control devices, see
2001-06-26 06:28:47 +04:00
.Xr \& usb 4
1999-09-18 04:31:01 +04:00
. It Ar uhid#
USB generic HID devices, see
2001-06-26 06:28:47 +04:00
.Xr \& uhid 4
1999-09-18 04:31:01 +04:00
. It Ar ulpt#
USB printer devices, see
2001-06-26 06:28:47 +04:00
.Xr \& ulpt 4
1999-09-18 04:31:01 +04:00
. It Ar ugen#
USB generic devices, see
2001-06-26 06:28:47 +04:00
.Xr \& ugen 4
2000-05-07 05:38:15 +04:00
. It Ar urio#
USB Diamond Rio 500 devices, see
2001-06-26 06:28:47 +04:00
.Xr \& urio 4
2000-12-06 00:25:35 +03:00
. It Ar uscanner#
2001-09-11 02:17:33 +04:00
USB scanners, see
2001-06-26 06:28:47 +04:00
.Xr \& uscanner 4
1999-09-18 04:31:01 +04:00
. It Ar ttyU#
2003-10-25 03:44:15 +04:00
USB modems, see
.Xr \& ucom 4
2005-07-30 10:18:39 +04:00
. It Ar ttyY#
USB serial adapters
1999-09-18 04:31:01 +04:00
. El
2001-09-08 05:32:36 +04:00
.It ISDN devices :
2001-01-06 16:53:18 +03:00
. Bl -tag -width 0123456789 -compact
2002-03-25 01:23:31 +03:00
. It Ar isdn
Communication between userland isdnd and kernel, see
.Xr \& isdn 4
. It Ar isdnctl
Control device, see
.Xr \& isdnctl 4
. It Ar isdnbchan#
Raw b-channel access, see
.Xr \& isdnbchan 4
. It Ar isdntel#
Telephony device, see
.Xr \& isdntel 4
2003-09-19 15:14:28 +04:00
. It Ar isdnteld#
Telephony dialout device
2002-03-25 01:23:31 +03:00
. It Ar isdntrc#
Trace device, see
.Xr \& isdntrc 4
2001-01-06 16:53:18 +03:00
. El
2003-10-25 00:26:57 +04:00
.It Video devices :
. Bl -tag -width 0123456789 -compact
. It Ar bwtwo#
2003-10-25 03:44:15 +04:00
Monochromatic frame buffer, see
.Xr \& sparc/bwtwo 4 ,
.Xr \& sun2/bwtwo 4 ,
.Xr \& sun3/bwtwo 4
2003-10-25 00:26:57 +04:00
. It Ar cgtwo#
2003-10-25 03:44:15 +04:00
8-bit color frame buffer, see
.Xr \& sparc/cgtwo 4 ,
.Xr \& sun3/cgtwo 4
2003-10-25 00:26:57 +04:00
. It Ar cgthree#
2003-10-25 03:44:15 +04:00
8-bit color frame buffer, see
.Xr \& sparc/cgthree 4
2003-10-25 00:26:57 +04:00
. It Ar cgfour#
2003-10-25 03:44:15 +04:00
8-bit color frame buffer, see
.Xr \& sparc/cgfour 4 ,
.Xr \& sun3/cgfour 4
2003-10-25 00:26:57 +04:00
. It Ar cgsix#
2003-10-25 03:44:15 +04:00
Accelerated 8-bit color frame buffer, see
.Xr \& sparc/cgsix 4
2003-10-25 00:26:57 +04:00
. It Ar cgeight#
2003-10-25 03:44:15 +04:00
24-bit color frame buffer, see
.Xr \& sparc/cgeight 4
2003-10-25 00:26:57 +04:00
. It Ar etvme
2003-10-25 03:44:15 +04:00
Tseng et-compatible cards on VME (atari)
2003-10-25 00:26:57 +04:00
. It Ar ik#
2003-10-25 03:44:15 +04:00
UNIBUS interface to Ikonas frame buffer, see
.Xr \& vax/ik 4
2003-10-25 00:26:57 +04:00
. It Ar leo
2003-10-25 03:44:15 +04:00
Circad Leonardo VME-bus true color (atari)
2003-10-25 00:26:57 +04:00
. It Ar ps#
2003-10-25 03:44:15 +04:00
UNIBUS interface to Picture System 2, see
.Xr \& vax/ps 4
2003-10-25 00:26:57 +04:00
. It Ar qv#
QVSS (MicroVAX) display
. It Ar tcx#
2003-10-25 03:44:15 +04:00
Accelerated 8/24-bit color frame buffer, see
.Xr \& sparc/tcx 4
2003-10-25 00:26:57 +04:00
. El
.It Maple bus devices :
. Bl -tag -width 0123456789 -compact
. It Ar maple
2003-10-25 03:44:15 +04:00
Maple bus control devices, see
.Xr \& dreamcast/maple 4
2003-10-25 00:26:57 +04:00
. It Ar mlcd#
2003-10-25 03:44:15 +04:00
Maple bus LCD devices, see
.Xr \& dreamcast/mlcd 4
2003-10-25 00:26:57 +04:00
. It Ar mmem#
2003-10-25 03:44:15 +04:00
Maple bus storage devices, see
.Xr \& dreamcast/mmem 4
2003-10-25 00:26:57 +04:00
. El
2005-07-12 11:26:19 +04:00
.It IEEE1394 bus devices :
. Bl -tag -width 0123456789 -compact
. It Ar fw#
IEEE1394 bus generic node access devices
. It Ar fwmem#
IEEE1394 bus physical memory of the remote node access devices
. El
2001-09-08 05:32:36 +04:00
.It Special purpose devices :
1999-09-18 04:31:01 +04:00
. Bl -tag -width 0123456789 -compact
2003-10-25 00:26:57 +04:00
. It Ar ad#
2003-10-25 03:44:15 +04:00
UNIBUS interface to Data Translation A/D converter, see
.Xr \& vax/ad 4
2003-10-25 00:26:57 +04:00
. It Ar agp#
AGP GART devices, see
.Xr \& agp 4
. It Ar altq
ALTQ control interface
2006-10-23 03:03:48 +04:00
. It Ar amr#
AMI MegaRaid control device, see
.Xr \& amr 4
2003-10-25 00:26:57 +04:00
. It Ar apm
2003-10-25 03:44:15 +04:00
Power management device, see
.Xr \& i386/apm 4
2003-10-25 00:26:57 +04:00
. It Ar audio#
Audio devices, see
.Xr \& audio 4
. It Ar bell#
2003-11-24 09:33:17 +03:00
OPM bell device (x68k)
2003-10-25 00:26:57 +04:00
. It Ar bktr
Brooktree 848/849/878/879 based TV cards, see
.Xr \& bktr 4
2005-05-17 18:01:48 +04:00
. It Ar bpf
1999-09-18 04:31:01 +04:00
Packet filter, see
2001-06-26 06:28:47 +04:00
.Xr \& bpf 4
2006-10-23 03:03:48 +04:00
. It Ar bthub
Bluetooth Device Hub control interface, see
.Xr \& bthub 4
2003-10-25 00:26:57 +04:00
. It Ar cfs#
Coda file system device
. It Ar ch#
SCSI media changer, see
.Xr \& ch 4
2001-12-02 21:49:44 +03:00
. It Ar cir#
2001-12-11 08:29:47 +03:00
Consumer IR, see
.Xr \& cir 4
2003-10-25 00:26:57 +04:00
. It Ar clockctl
Clock control for non root users, see
.Xr \& clockctl 4
2007-12-09 11:46:57 +03:00
. It Ar cpuctl
CPU control
2003-08-24 03:16:36 +04:00
. It Ar crypto
2005-05-17 18:01:48 +04:00
Hardware crypto access driver, see
.Xr \& crypto 4
2003-10-25 00:26:57 +04:00
. It Ar dmoverio
Hardware-assisted data movers, see
.Xr \& dmoverio 4
. It Ar dpt#
DPT/Adaptec EATA RAID management interface, see
.Xr \& dpt 4
. It Ar dpti#
DPT/Adaptec I2O RAID management interface, see
.Xr \& dpti 4
. It Ar fb#
2006-10-23 03:03:48 +04:00
PMAX generic framebuffer pseudo-device
2003-10-25 00:26:57 +04:00
. It Ar fd
2003-10-25 03:44:15 +04:00
File descriptors
2003-10-25 00:26:57 +04:00
. It Ar grf#
2003-10-25 03:44:15 +04:00
Graphics frame buffer device, see
.Xr \& amiga/grf 4 ,
.Xr \& hp300/grf 4
2003-10-25 00:26:57 +04:00
. It Ar hil
2003-10-25 03:44:15 +04:00
HP300 HIL input devices, see
.Xr \& hp300/hil 4
2003-10-25 00:26:57 +04:00
. It Ar icp
ICP-Vortex/Intel RAID control interface, see
.Xr \& icp 4
. It Ar iic#
IIC bus device
2007-01-09 18:35:14 +03:00
. It Ar io
X86 IOPL access for COMPAT_10, COMPAT_FREEBSD, see
.Xr \& hp700/io 4 ,
.Xr \& i386/io 4
2003-10-25 00:26:57 +04:00
. It Ar iop#
I2O IOP control interface, see
.Xr \& iop 4
. It Ar ipl
IP Filter
2001-12-02 21:49:44 +03:00
. It Ar irframe#
2001-12-11 08:29:47 +03:00
IrDA physical frame, see
.Xr \& irframe 4
2003-10-25 00:26:57 +04:00
. It Ar ite#
2003-10-25 03:44:15 +04:00
Terminal emulator interface to HP300 graphics devices, see
.Xr \& amiga/ite 4 ,
.Xr \& hp300/ite 4
1999-09-18 04:31:01 +04:00
. It Ar joy#
Joystick device, see
2001-06-26 06:28:47 +04:00
.Xr \& joy 4
2003-10-25 00:26:57 +04:00
. It Ar kttcp
Kernel ttcp helper device, see
.Xr \& kttcp 4
. It Ar lkm
Loadable kernel modules interface, see
.Xr \& lkm 4
2006-10-23 03:03:48 +04:00
. It Ar lockstat
Kernel locking statistics
2003-10-25 00:26:57 +04:00
. It Ar magma#
2003-10-25 03:44:15 +04:00
Magma multiport serial/parallel cards, see
.Xr \& sparc/magma 4
2003-10-25 00:26:57 +04:00
. It Ar midi#
MIDI, see
.Xr \& midi 4
. It Ar mlx#
Mylex DAC960 control interface, see
.Xr \& mlx 4
. It Ar mly#
Mylex AcceleRAID/eXtremeRAID control interface, see
.Xr \& mly 4
. It Ar np#
2003-10-25 03:44:15 +04:00
UNIBUS Ethernet co-processor interface, for downloading., see
.Xr \& vax/np 4
2003-10-25 00:26:57 +04:00
. It Ar nsmb#
SMB requester, see
.Xr \& nsmb 4
. It Ar openfirm
OpenFirmware accessor
2007-12-09 11:46:57 +03:00
. It Ar pad#
Pseudo-audio device driver, see
.Xr \& pad 4
2003-10-25 00:26:57 +04:00
. It Ar pci#
PCI bus access devices, see
.Xr \& pci 4
. It Ar pf
2005-05-17 18:01:48 +04:00
PF packet filter
2003-10-25 00:26:57 +04:00
. It Ar pow#
2003-11-24 09:33:17 +03:00
Power management device (x68k), see
2003-10-25 03:44:15 +04:00
.Xr \& x68k/pow 4
2007-12-09 11:46:57 +03:00
. It Ar putter
Pass-to-Userspace Transporter
2003-10-25 00:26:57 +04:00
. It Ar px#
PixelStamp Xserver access, see
.Xr \& px 4
. It Ar radio#
Radio devices, see
.Xr \& radio 4
. It Ar random
Random number generator, see
.Xr \& rnd 4
. It Ar rtc#
2003-10-25 03:44:15 +04:00
RealTimeClock, see
.Xr \& atari/rtc 4 ,
2007-12-09 11:46:57 +03:00
.Xr \& evbppc/rtc 4 ,
.Xr \& hp300/rtc 4
1999-09-18 04:31:01 +04:00
. It Ar satlink#
PlanetConnect satellite receiver driver
. It Ar scsibus#
SCSI busses, see
2003-10-27 00:34:49 +03:00
.Xr \& scsi 4
2003-10-25 00:26:57 +04:00
. It Ar se#
SCSI Ethernet, see
.Xr \& se 4
2000-06-11 14:08:03 +04:00
. It Ar ses#
2001-04-16 12:11:16 +04:00
SES/SAF-TE SCSI Devices, see
2001-06-26 06:28:47 +04:00
.Xr \& ses 4
2003-10-25 00:26:57 +04:00
. It Ar speaker
PC speaker, see
.Xr \& speaker 4
. It Ar sram
2003-11-24 09:33:17 +03:00
Battery backuped memory (x68k)
1999-09-18 04:31:01 +04:00
. It Ar ss#
SCSI scanner, see
2001-06-26 06:28:47 +04:00
.Xr \& ss 4
2003-10-25 00:26:57 +04:00
. It Ar stic#
PixelStamp interface chip
. It Ar sysmon
2003-10-25 03:44:15 +04:00
System Monitoring hardware, see
.Xr \& envsys 4
2003-10-25 00:26:57 +04:00
. It Ar systrace
Syscall tracer, see
.Xr \& systrace 4
2005-05-17 18:01:48 +04:00
. It Ar tap#
Virtual Ethernet device, see
.Xr \& tap 4
2003-10-25 00:26:57 +04:00
. It Ar tun#
Network tunnel driver, see
.Xr \& tun 4
2006-10-23 03:03:48 +04:00
. It Ar twa
3ware Apache control interface, see
.Xr \& twa 4
2003-10-25 00:26:57 +04:00
. It Ar twe
3ware Escalade control interface, see
.Xr \& twe 4
1999-09-18 04:31:01 +04:00
. It Ar uk#
Unknown SCSI device, see
2001-06-26 06:28:47 +04:00
.Xr \& uk 4
2003-10-25 00:26:57 +04:00
. It Ar veriexec
2003-10-25 03:44:15 +04:00
Verified executable fingerprint loader, see
2005-05-17 18:01:48 +04:00
.Xr \& veriexec 4
2001-09-03 22:42:44 +04:00
. It Ar vmegen#
Generic VME access
2003-10-25 00:26:57 +04:00
. It Ar view#
Generic interface to graphic displays (Amiga)
2001-09-03 22:42:44 +04:00
. It Ar wsfont#
2003-05-06 12:49:05 +04:00
Console font control, see
.Xr \& wsfont 4
2001-09-11 02:17:33 +04:00
. It Ar wsmux#
2003-03-30 21:51:44 +04:00
wscons event multiplexor, see
2001-09-11 02:17:33 +04:00
.Xr \& wsmux 4
2005-05-17 18:01:48 +04:00
. It Ar xenevt
Xen event interface
1999-09-18 04:31:01 +04:00
. El
1996-11-05 08:18:01 +03:00
.El
2007-03-03 09:53:41 +03:00
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm :
.Pp
.Bl -tag -width indent
.It Ev MAKEDEV_AS_LIBRARY
If this is set, then
.Nm
will define several shell functions and then return,
ignoring all its command line options and arguments.
This is used to enable
.Xr MAKEDEV.local 8
to use the shell functions defined in
.Nm .
.El
1996-11-05 08:18:01 +03:00
.Sh FILES
2002-03-14 04:38:33 +03:00
.Bl -tag -width "/dev/MAKEDEV.local" -compact
1996-11-05 08:18:01 +03:00
.It Pa /dev
2001-04-16 12:11:16 +04:00
special device files directory
.It Pa /dev/MAKEDEV
script described in this man page
2002-03-14 04:38:33 +03:00
.It Pa /dev/MAKEDEV.local
2007-02-27 01:37:57 +03:00
script for site-specific devices
1996-11-05 08:18:01 +03:00
.El
2002-03-14 04:38:33 +03:00
.Sh DIAGNOSTICS
If the script reports an error that is difficult to understand,
you can get more debugging output by using
.Dl Ic sh Fl x Ar MAKEDEV Ar argument .
1996-11-05 08:18:01 +03:00
.Sh SEE ALSO
2005-06-20 17:25:23 +04:00
.Xr config 1 ,
2007-03-03 11:10:09 +03:00
.Xr init 1 ,
2007-02-27 01:54:40 +03:00
.Xr pax 1 ,
1996-11-05 08:18:01 +03:00
.Xr intro 4 ,
2007-02-27 01:37:57 +03:00
.Xr MAKEDEV.local 8 ,
2007-02-27 01:54:40 +03:00
.Xr diskless 8 ,
.Xr mknod 8 ,
.Xr mtree 8
2002-03-14 04:38:33 +03:00
.Sh HISTORY
The
.Nm
command appeared in
.Bx 4 .2 .
2007-03-03 09:53:41 +03:00
The ability to be used as a function library was added in
.Nx 5 .0 .
2003-10-25 00:26:57 +04:00
.Sh NOTES
2007-02-27 01:54:40 +03:00
Not all devices listed in this manpage are supported on all platforms.
.Pp
2001-04-16 12:11:16 +04:00
This man page is generated automatically from the same sources
as
.Pa /dev/MAKEDEV ,
in which the device files are not always sorted, which may result
2005-05-17 18:01:48 +04:00
in an unusual (non-alphabetical) order.
2007-02-27 01:54:40 +03:00
.Pp
In order to allow a diskless
.Nx
client to obtain its
.Pa /dev
directory from a file server running a foreign operating system,
one of the following techniques may be useful to populate
a directory of device nodes on the foreign server:
.Bl -bullet
.It
If the foreign server is sufficiently similar to
.Nx ,
run
.Nm
in an appropriate directory of the foreign server,
using the
.Fl m
flag to refer to a script that converts from command line
arguments that would be usable with the
.Nx
.Xr mknod 8
command to the equivalent commands for the foreign server.
.It
Run
.Nm
with the
.Fl s
flag to generate an
.Xr mtree 8
specification file; this can be done on any host with a
POSIX-compliant shell and a few widely-available utilities.
Use the
.Xr pax 1
command with the
.Fl w Fl M
flags to convert the
.Xr mtree 8
specification file into an archive
in a format that supports device nodes
(such as
.Ar ustar
format);
this can be done on a
.Nx
host, or can be done in a cross-build environment using
.Sy TOOLDIR Ns Pa /bin/nbpax .
Finally, use apropriate tools on the foreign server
to unpack the archive and create the device nodes.
.El