Reads from an I/O register on the X.25 Interface Co-Processor/2.
Note: Only a process that has opened the device for diagnostics can issue this call.
The X25_DIAG_IO_READ x25sioctl operation reads from an I/O register on the X.25 Interface Co-Processor/2. Both direct and indirect registers can be read since the card pointer register is adjusted by this operation.
For this operation, the arg parameter returns a pointer to an x25_diag_io structure. The value this operation reads is placed in the value field of the x25_diag_io structure.
The X25_DIAG_IO_READ operation can be called from the process environment only.
A return code of -1 indicates an unsuccessful operation. If -1 is returned, the kernel sets the errno global variable to one of the following values:
|EACCES||The device was not opened in diagnostic mode.|
|ENXIO||The operation attempted to read a card that was not configured.|
The X25_DIAG_IO_READ operation functions with an X.25 Interface Co-Processor/2 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 X25_DIAG_IO_WRITE x25sioctl X.25 Device Handler Operation, X25_DIAG_MEM_READ x25sioctl X.25 Device Handler Operation, X25_DIAG_MEM_WRITE x25sioctl X.25 Device Handler Operation, X25_DIAG_TASK x25sioctl X.25 Device Handler Operation.
The x25sioctl entry point.