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

KSTRATE (Set Typematic Rate)

Purpose

Sets typematic rate.

Syntax

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

Description

The KSTRATE ioctl subroutine call changes the rate at which a pressed key repeats itself, specified in number of repeats per second. The minimum rate is 2 repeats per second, and the maximum rate is 30 repeats per second.

When keyboard diagnostics are enabled, the KSTRATE ioctl subroutine call fails and sets the errno global variable to a value of EBUSY.

Parameters

FileDescriptor Specifies the open file descriptor for the keyboard.
Arg Specifies the address of an integer that contains the desired typematic rate.

Implementation Specifics

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

Related Information

The chhwkbd command.


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