[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 2

KSREGRING (Register Input Ring)

Purpose

Registers input ring.

Syntax

#include <sys/inputdd.h>
int ioctl (FileDescriptor, KSREGRING, Arg)
int FileDescriptor;
caddr_t *Arg;

Description

If the keyboard special file was opened by a process in user mode, the Arg parameter should point to a uregring structure containing:

If the keyboard special file was opened by a process in kernel mode, the Arg parameter should point to a kregring structure containing:

All callbacks execute within the interrupt environment. All fields within the input ring header as defined by the input ring structure must be properly initialized before the invocation of the ioctl. A subsequent KSREGRING ioctl subroutine call replaces the input ring supplied earlier. Specify a null input ring pointer to disable keyboard input.

The input ring acts as a buffer for operator input. Key press and release events are placed on the ring as they occur, without processing or filtering.

Parameters

FileDescriptor Specifies the open file descriptor for the keyboard.
Arg Specifies the address of the uregring or kregring structure.

Implementation Specifics

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


[ Previous | Next | Contents | Home | Search ]