Determines whether a specified event has occurred on the Serial Optical Link (SOL) device.
#include <sys/device.h> #include <sys/comio.h> #include <sys/soluser.h>
int sol_select (devno, events, reventp, chan) dev_t devno; ushort events; ushort *reventp; int chan;
devno | Specifies major and minor device numbers. | ||||||
events | Specifies conditions to check, which are denoted by the bitwise OR of one or more of the following: | ||||||
reventp | Points to the result of condition checks. A bitwise OR of one of the following conditions is returned:
| ||||||
chan | Specifies the channel number assigned by the sol_mpx entry point. |
Note: Only user-mode callers should call this entry point.
The sol_select entry point is called when the select or poll subroutine is used to determine if a specified event has occurred on the SOL device. When the SOL device handler is in a state in which the event can never be satisfied (such as a hardware failure), the sol_select entry point sets the returned events flags to 1 (one) for the event that cannot be satisfied. This prevents the select or poll subroutines from waiting indefinitely.
The sol_select entry point can be called from the process environment only.
ENODEV | Indicates the specified minor number is not valid. |
EACCES | Indicates the call from a kernel process is not valid. |
The sol_select 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 poll subroutine, select subroutine.