[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 2

GIOQUERYID (Query Attached Devices)

Purpose

Queries attached devices.

Syntax

#include <sys/inputdd.h>
int ioctl(FileDescriptor, GIOQUERYID, Arg)
int FileDescriptor;
struct gioqueryid *Arg;

Description

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   */

Parameters

FileDescriptor Specifies the open file descriptor for the gio adapter.
Arg Specifies the address of a gioqueryid structure.

Implementation Specifics

This ioctl subroutine call is part of Base Operating System (BOS) Runtime.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]