NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO
mknod is available in two forms:
as a C_INIT(1M) built-in command
as a standalone command
The mknod command creates special device files. Nodes are built manually on top of ChorusOS. The four arguments required for this are:
Device name, for example da for a SCSI disk, hd for an IDE disk, or ppp for a PPP device.
Type of device. If the device is a block type device such as a tape or disk drive that needs both cooked and raw special files, the type is b. All other devices are character type devices, such as terminal and pseudo devices, and are type c.
The major device number is an integer number which tells the microkernel which device driver entry point to use.
The minor device number tells the microkernel which sub-unit the node corresponds to on the device; for example, a sub-unit may be a filesystem partition or a tty line.
major and minor numbers can be given in any suitable form to the strtoul() function, notably in the hexadecimal form. This is convenient for the minor device numbers to define the slice/partition values of a disk.
mknod /dev/hd0a b 0 0 |
This creates the first partition of an IDE disk in block mode.
For more information on the disk devices that you can create on top of ChorusOS see the File System Administration Guide.
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|---|---|
| Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | ATTRIBUTES | SEE ALSO