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

IOCINFO (Return devinfo Structure) ioctl Input Device Driver

Purpose

Returns devinfo structure.

Syntax

#include <sys/devinfo.h>
int ioctl (FileDescriptor, IOCINFO, Arg)
int FileDescriptor;
struct devinfo *Arg;

Description

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

Parameters

FileDescriptor Specifies the open file descriptor for the device.
Arg Specifies the address of the devinfo 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 ]