up | Inhaltsverzeichniss | Kommentar

Manual page for CLONE(4)

clone - open any minor device on a STREAMS driver


clone is a STREAMS software driver that finds and opens an unused minor device on another STREAMS driver. The minor device passed to clone during the open operation is interpreted as the major device number of another STREAMS driver for which an unused minor device is to be obtained. Each such open results in a separate stream to a previously unused minor device.

The clone driver supports only an open.2v function. This open function performs all of the necessary work so that subsequent system calls (including close.2v require no further involvement of the clone driver.


clone generates an ENXIO error, without opening the device, if the minor device number provided does not correspond to a valid major device, or if the driver indicated is not a STREAMS driver.


Multiple opens of the same minor device are not supported through the clone interface. Executing stat.2v on the file system node for a cloned device yields a different result than does executing fstat using a file descriptor obtained from opening that node.


close.2v open.2v stat.2v

index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97