[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]