Note: This function is supported in AIX® 5.1 and earlier only.
Determines whether a specified event has occurred on the token-ring device.
Item | Description |
---|---|
devno | Specifies major and minor device numbers. |
events | Specifies the conditions to check, denoted by the bitwise
OR of one or more of the following:
|
reventp | Points to
the result of condition checks. A bitwise OR one
of the following conditions is returned:
|
chan | Specifies the channel number assigned by the tokmpx entry point. |
The tokselect entry point is called when the select or poll subroutine is used to determine if a specified event has occurred on the token-ring device.
When the token-ring device handler is in a state in which the event can never be satisfied (for example, an adapter failure), then the tokselect entry point sets the returned events flags to 1 for the event that cannot be satisfied. This prevents the select or poll subroutines from waiting indefinitely.
The tokselect entry point functions with a Token-Ring High Performance Network Adapter that has been correctly configured for use on a qualified network. Consult adapter specifications for more information on configuring the adapter and network qualifications.
The tokselect entry point can only be called from the process environment.
Item | Description |
---|---|
ENXIO | Indicates the specified minor number is not valid. |
EACCES | Indicates a call from a kernel process is not valid. |