Queries attached devices.
#include <sys/inputdd.h>
int ioctl(FileDescriptor, GIOQUERYID, Arg)
int FileDescriptor;
struct gioqueryid *Arg;
The GIOQUERYID ioctl subroutine call returns the identifier of devices connected to the GIO adapter. The ID of the device connected to port 0 is returned in the first field of the structure, and the device connected to port 1 is returned in the second field of the structure. Valid device IDs are as follows:
#define giolpfkid 0x01 /* LPFK device ID */
#define giodialsid 0x02 /* dials device ID */
Item | Description |
---|---|
FileDescriptor | Specifies the open file descriptor for the gio adapter. |
Arg | Specifies the address of a gioqueryid structure. |