minix/man/man1/dev2name.1

31 lines
869 B
Groff
Raw Normal View History

.TH DEV2NAME 1
.SH NAME
dev2name \- obtain device name given its number
.SH SYNOPSIS
\fBdev2name\fR \fIdeviceno\fR
.br
\fBdev2name\fR \fImajor\fR \fIminor\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \fImajor\fR
# Major device number for which to obtain device name
.TP 5
.B \fIminor\fR
# Minor device number for which to obtain device name
.TP 5
.B \fIdeviceno\fR
# Full device number for which to obtain device name (specifies the minor device number in the low-order byte and the major device number in the remainder)
.SH DESCRIPTION
.PP
This utility locates a file in \fB/dev\fR that represents the device with the specified major/minor device number and prints its name to the standard output. The exit code is zero if such a device is found and non-zero if no such device was found.
.SH "SEE ALSO"
.BR mknod (1),
.BR DESCRIBE (1),
.BR MAKEDEV (1).