#include <sys/devinfo.h>
int ioctl (FileDescriptor, IOCINFO, Arg) int FileDescriptor; struct devinfo *Arg;
The IOCINFO ioctl operation returns a devinfo structure, defined in the /usr/include/sys/devinfo.h file, that describes the device. Only the first two fields are valid for this device. The values are as follows:
char devtype; /* device type TBD */ char flags; /* open flags (see sys/device.h) */
FileDescriptor | Specifies the open file descriptor for the device. |
Arg | Specifies the address of the devinfo structure. |
This ioctl subroutine call is part of Base Operating System (BOS) Runtime.