Initializes the Serial Optical Link (SOL) device handler and allocates the required system resources.
#include <sys/device.h> #include <sys/comio.h> #include <sys/soluser.h>
int sol_open (devno, devflag, chan, arg) dev_t devno; ulong devflag; int chan; struct kopen_ext *arg;
#include <sys/device.h> #include <sys/comio.h> #include <sys/soluser.h>
int sol_open (devno, devflag, chan, arg) dev_t devno; ulong devflag; int chan; int arg;
devno | Specifies the major and minor device numbers. |
devflag | Specifies the flag word with the following definitions: |
chan | Specifies the channel number assigned by the sol_mpx entry point. |
arg | Points to a kopen_ext structure for kernel-mode processes. The /usr/include/sys/comio.h file contains a description of this structure. For user-mode processes, this field is not used. |
The sol_open entry point is called when a user-mode caller issues an open, openx, or creat subroutine. The sol_open routine can also be invoked in response to an fp_opendev kernel service. This routine opens a device to read and write data.
Note: After the sol_open operation has successfully completed, the caller must issue a CIO_START operation before the SOL device handler can transmit or receive any data.
The sol_open entry point can be called from the process environment only.
The sol_open entry point functions with a Serial Link Adapter and Serial Optical Channel Converter that have been correctly configured for use on a qualified network. Consult hardware specifications for more information on configuring hardware and network qualifications.
Serial Optical Link Device Handler Entry Points.
The sol_mpx entry point.
The open, openx, or creat subroutine.
The fp_opendev kernel service.
The CIO_START sol_operation.