- document 'p' file type.

- fix stale documentation about the location of the major/minor device
  tables in the kernel.
This commit is contained in:
christos 1998-11-24 22:55:23 +00:00
parent 8b132ea145
commit f95d18485e
1 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mknod.8,v 1.15 1998/09/11 07:20:48 mycroft Exp $
.\" $NetBSD: mknod.8,v 1.16 1998/11/24 22:55:23 christos Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -54,10 +54,13 @@
.Ar name
.Op Cm c | Cm b
.Ar number
.Nm ""
.Ar name
.Cm p
.Sh DESCRIPTION
The
.Nm
command creates device special files.
command creates device special files, or fifos.
Normally the shell script
.Pa /dev/MAKEDEV
is used to create special files for commonly known devices; it executes
@ -74,7 +77,7 @@ Device name, for example
for a SCSI disk on an HP300 or a
.Dq pty
for pseudo-devices.
.It Cm b | Cm c
.It Cm b | Cm c | Cm p
Type of device. If the
device is a block type device such as a tape or disk drive which needs
both cooked and raw special files,
@ -83,6 +86,9 @@ the type is
All other devices are character type devices, such as terminal
and pseudo devices, and are type
.Cm c .
Specifying
.Cm p
creates fifo files.
.It Ar major
The major device number is an integer number which tells the kernel
which device driver entry point to use. To learn what
@ -91,11 +97,11 @@ major device number to use for a particular device, check the file
to see if the device is known, or check
the system dependent device configuration file:
.Bd -filled -offset indent
.Dq Pa /usr/src/sys/conf/device. Ns Em architecture
.Dq Pa /usr/src/sys/<arch>/<arch>/conf.c
.Ed
.Pp
(for example
.Pa device.hp300 ) .
.Pa /usr/src/sys/vax/vax/conf.c ) .
.It Ar minor
The minor device number tells the kernel which one of several similar
devices the node corresponds to; for example, it may be a specific serial