]> git.saurik.com Git - apple/file_cmds.git/blobdiff - mknod/mknod.8
file_cmds-251.tar.gz
[apple/file_cmds.git] / mknod / mknod.8
index 7a1517d865a7f80a4d6e5810f78f4ea14b7e5033..eb4f2927b589a38c6af814df7c649810c56f5a86 100644 (file)
 .Ar name
 .Op Cm c | Cm b
 .Ar major minor
-.Nm ""
+.Nm
 .Op Fl F Ar format
 .Ar name
 .Op Cm c | Cm b
 .Ar major unit subunit
-.Nm ""
+.Nm
 .Ar name
 .Op Cm c | Cm b
 .Ar number
+.Nm
+.Ar name
+.Ar w
 .Sh DESCRIPTION
 The
 .Nm
 command creates device special files.
-Normally the shell script
-.Pa /dev/MAKEDEV
-is used to create special files for commonly known devices; it executes
-.Nm
-with the appropriate arguments and can make all the files required for the
-device.
 .Pp
 To make nodes manually, the required arguments are:
 .Pp
@@ -74,28 +71,20 @@ 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 w
 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,
 the type is
 .Cm b .
+Whiteout nodes are type
+.Cm w .
 All other devices are character type devices, such as terminal
 and pseudo devices, and are type
 .Cm c .
 .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
-major device number to use for a particular device, check the file
-.Pa /dev/MAKEDEV
-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
-.Ed
-.Pp
-(for example
-.Pa device.hp300 ) .
+which device driver entry point to use.
 .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
@@ -107,7 +96,7 @@ that disk.  (Currently this form of specification is only supported by the
 .Ar bsdos
 format, for compatibility with the
 .Bsx
-.Xr mknod 8 .)
+.Xr mknod 8 . )
 .El
 .Pp
 Device numbers for different operating systems may be packed in a different
@@ -136,8 +125,7 @@ Alternatively, a single opaque device number may be specified.
 .Sh SEE ALSO
 .Xr mkfifo 1 ,
 .Xr mkfifo 2 ,
-.Xr mknod 2 ,
-.Xr MAKEDEV 8
+.Xr mknod 2
 .Sh HISTORY
 A
 .Nm