Determines whether a specified event has occurred on the Ethernet device.
#include <sys/device.h> #include <sys/comio.h>
int entselect (devno, events, reventp, chan) dev_t devno; ushort events; ushort *reventp; int chan;
devno | Specifies major and minor device numbers. |
events | Identifies the events to check. |
reventp | Returned events pointer passed by reference. This pointer is used by the entselect entry point to indicate which of the selected events are true when the call occurs. |
chan | Specifies the channel number assigned by the entmpx entry point. |
Note: Only user-mode callers should use the entselect entry point.
The entselect entry point determines if a specified event has occurred on the Ethernet device. This entry point must be called with the select or poll subroutine.
When the Ethernet device handler is in a state in which the specified event cannot be satisfied (for example, an adapter failure), then the entselect entry point sets the returned event flags to 1. This prevents the select or poll subroutine from waiting indefinitely.
An entselect entry point can be called from the process environment only.
In general, communication device handlers use the common return codes defined for an entry point. However, device handlers for specific communication devices may return device-specific codes. The common return codes for the entselect entry point are the following:
The entselect entry point functions with an Ethernet High-Performance LAN adapter that has been correctly configured for use on a qualified network. Consult the adapter specifications for more information on configuring the adapter and network qualifications.
The CIO_GET_FASTWRT ddioctl Communications PDH Operation, the entmpx entry point.
The poll subroutine, select subroutine.