clone(7) CLIX clone(7)
NAME
clone - STREAMS driver for finding and opening minor devices
DESCRIPTION
The clone driver 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 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 consists solely of an open() function. This function
performs all of the necessary work so that subsequent functions (including
the close() function) require no further involvement of clone.
The clone driver will generate 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.
NOTES
Multiple opens of the same minor device cannot be done through the clone
interface. Executing the stat() function on the file system node for a
cloned device yields a different result from executing the fstat()
function using a file descriptor obtained from opening the node.
RELATED INFORMATION
Files: log(7)
AT&T UNIX System V STREAMS Programmer's Guide
2/94 - Intergraph Corporation 1