DLopen(3dlpi) DLopen(3dlpi)
NAME
DLopen - initialize SAP state
SYNOPSIS
DLopen(
queue_t *q, dev_t *dev, int flag, sflag, struct cred *credp)
Parameters
q pointer to the read queue
dev pointer to the major/minor device number
flag file flags
sflag Stream open flags
credp pointer to a credentials structure
DESCRIPTION
This routine initializes the SAP state if the Stream has not
been opened before. It allocates a minor number if the Stream
has been opened with the cloneopen feature. Initialization of
SAP state is performed at STREAMS spl. DLopen() checks the
BOARD_PRESENT flag in the board configuration structure (set
in the Hardware Dependent Layer during initialization) to
return a board not installed error.
Response
error code ENXIO, ECHRNG, 0 (no errors)
Layer
Hardware Independent.
REFERENCES
Hardware Independent Layer Functions Called
none
Hardware Dependent Layer Functions Called
none
Copyright 1994 Novell, Inc. Page 1