xref: /minix3/minix/commands/MAKEDEV/MAKEDEV.8 (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc.Dd October 4, 2013
2*433d6423SLionel Sambuc.Dt MAKEDEV 8
3*433d6423SLionel Sambuc.Os
4*433d6423SLionel Sambuc.Sh NAME
5*433d6423SLionel Sambuc.Nm MAKEDEV, DESCRIBE
6*433d6423SLionel Sambuc.Nd make/describe device files
7*433d6423SLionel Sambuc.Sh SYNOPSIS
8*433d6423SLionel Sambuc.Nm MAKEDEV
9*433d6423SLionel Sambuc.Op Fl n | Fl m
10*433d6423SLionel Sambuc.Op Fl r | Fl s
11*433d6423SLionel Sambuc.Op key ...
12*433d6423SLionel Sambuc.Nm DESCRIBE
13*433d6423SLionel Sambuc.Op device ...
14*433d6423SLionel Sambuc.Sh DESCRIPTION
15*433d6423SLionel Sambuc.Nm MAKEDEV
16*433d6423SLionel Sambucmay be used to create the device files normally found in the /dev directory.
17*433d6423SLionel Sambuc.Nm MAKEDEV
18*433d6423SLionel Sambucknows about all supported devices and will create them in the current
19*433d6423SLionel Sambucdirectory with the proper owner and mode. For many devices
20*433d6423SLionel Sambuc.Nm MAKEDEV
21*433d6423SLionel Sambucwill not only create the device you want, but also the devices related
22*433d6423SLionel Sambucto it that you will probably want too. Naming one floppy device will
23*433d6423SLionel Sambuccreate all floppy devices for the same drive for instance.
24*433d6423SLionel Sambuc.Pp
25*433d6423SLionel SambucThe options are as follows:
26*433d6423SLionel Sambuc.Bl -tag -width Xxxexcludexfilexx
27*433d6423SLionel Sambuc.It Fl n
28*433d6423SLionel Sambucecho the commands it would execute when you call it without that flag.
29*433d6423SLionel Sambuc.It Fl m
30*433d6423SLionel Sambucecho
31*433d6423SLionel Sambuc.Nm mtree(8)
32*433d6423SLionel Sambucformatted lines instead of creating the device nodes.
33*433d6423SLionel Sambuc.It Fl r
34*433d6423SLionel SambucRestricted set of devices. This set is used when generating the ramdisk.
35*433d6423SLionel Sambuc.It Fl s
36*433d6423SLionel SambucStandard set of devices. This set is used when popluating /dev.
37*433d6423SLionel Sambuc.El
38*433d6423SLionel Sambuc.Pp
39*433d6423SLionel Sambuc.Ar key
40*433d6423SLionel Sambucarguments are simply the names of the devices you want to create. Call
41*433d6423SLionel Sambuc.Nm MAKEDEV
42*433d6423SLionel Sambucwithout arguments to see a list of keys that it understands.
43*433d6423SLionel Sambuc.Pp
44*433d6423SLionel SambucThe command
45*433d6423SLionel Sambuc.Nm DESCRIBE
46*433d6423SLionel Sambucwill give you a one-line description of a given device. By default It
47*433d6423SLionel Sambucwill list all devices in /dev.
48*433d6423SLionel Sambuc.Sh "SEE ALSO"
49*433d6423SLionel Sambuc.Xr dev 4 ,
50*433d6423SLionel Sambuc.Xr mknod 8
51*433d6423SLionel Sambuc.Sh BUGS
52*433d6423SLionel SambucThe eagerness of
53*433d6423SLionel Sambuc.Nm MAKEDEV
54*433d6423SLionel Sambucto create devices may cause many "File exists" errors from
55*433d6423SLionel Sambuc.Nm mknod .
56*433d6423SLionel Sambuc.Sh AUTHORS
57*433d6423SLionel SambucWritten by Kees J. Bot (kjb@cs.vu.nl) and Lionel A. Sambuc (lionel@minix3.org)
58