To resolve PR 9451, wording and formatting adjusted to be more clear about

the -F option for making device nodes for other versions of UNIX.
This commit is contained in:
fair 2000-05-17 09:43:33 +00:00
parent 53fa9da4df
commit d143ba5da7

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mknod.8,v 1.17 2000/03/22 02:11:51 simonb Exp $ .\" $NetBSD: mknod.8,v 1.18 2000/05/17 09:43:33 fair Exp $
.\" .\"
.\" Copyright (c) 1980, 1991, 1993 .\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -78,10 +78,9 @@ for a SCSI disk on an HP300 or a
.Dq pty .Dq pty
for pseudo-devices. for pseudo-devices.
.It Cm b | Cm c | Cm p .It Cm b | Cm c | Cm p
Type of device. If the Type of device.
device is a block type device such as a tape or disk drive which needs If the device is a block type device such as a tape or disk drive
both cooked and raw special files, which needs both cooked and raw special files, the type is
the type is
.Cm b . .Cm b .
All other devices are character type devices, such as terminal All other devices are character type devices, such as terminal
and pseudo devices, and are type and pseudo devices, and are type
@ -91,8 +90,9 @@ Specifying
creates fifo files. creates fifo files.
.It Ar major .It Ar major
The major device number is an integer number which tells the kernel The major device number is an integer number which tells the kernel
which device driver entry point to use. To learn what which device driver entry point to use.
major device number to use for a particular device, check the file To learn what major device number to use for a particular device,
check the file
.Pa /dev/MAKEDEV .Pa /dev/MAKEDEV
to see if the device is known, or check to see if the device is known, or check
the system dependent device configuration file: the system dependent device configuration file:
@ -100,43 +100,62 @@ the system dependent device configuration file:
.Dq Pa /usr/src/sys/arch/<arch>/<arch>/conf.c .Dq Pa /usr/src/sys/arch/<arch>/<arch>/conf.c
.Ed .Ed
.Pp .Pp
(for example .Po
.Pa /usr/src/sys/arch/vax/vax/conf.c ) . e.g.
.Pa /usr/src/sys/arch/vax/vax/conf.c
.Pc .
.It Ar minor .It Ar minor
The minor device number tells the kernel which one of several similar 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 devices the node corresponds to; for example, it may be a specific serial
port or pty. port or pty.
.It Ar unit and subunit .It Ar unit No and Ar subunit
The unit and subunit numbers select a subset of a device; for example, the The unit and subunit numbers select a subset of a device; for example, the
unit may specify a particular SCSI disk, and the subunit a partition on unit may specify a particular SCSI disk, and the subunit a partition on
that disk. (Currently this form of specification is only supported by the that disk.
.Po
Currently this form of specification is only supported by the
.Ar bsdos .Ar bsdos
format, for compatibility with the format, for compatibility with the
.Bsx .Bsx
.Xr mknod 8 .) .Xr mknod 8
.Pc .
.El .El
.Pp .Pp
Device numbers for different operating systems may be packed in a different The
format. To create device nodes that may be used by such an operating system
(e.g. in an exported file system used for netbooting), the
.Fl F .Fl F
option is used. The following formats are recognized: option is used to create device nodes that may be used by an
native, operating system which uses device numbers packed in a different
386bsd, format than
4bsd, .Nx
bsdos, uses.
freebsd, This is necessary when
hpux, .Nx
isc, is used as an
linux, .Tn NFS
netbsd, server for netbooted computers running other operating systems.
osf1, .Pp
sco, The following values for the
solaris, .Ar format
sunos, following
svr3, .Fl F
svr4 and are recognized:
ultrix. .Sy native ,
.Sy 386bsd ,
.Sy 4bsd ,
.Sy bsdos ,
.Sy freebsd ,
.Sy hpux ,
.Sy isc ,
.Sy linux ,
.Sy netbsd ,
.Sy osf1 ,
.Sy sco ,
.Sy solaris ,
.Sy sunos ,
.Sy svr3 ,
.Sy svr4 ,
and
.Sy ultrix .
.Pp .Pp
Alternatively, a single opaque device number may be specified. Alternatively, a single opaque device number may be specified.
.Sh SEE ALSO .Sh SEE ALSO