KSRFLUSH (Flush Input Ring)

Purpose

Flushes input ring.

Syntax

#include <sys/inputdd.h>

int ioctl ( FileDescriptor, KSRFLUSH, NULL)
int FileDescriptor;

Description

The KSRFLUSH ioctl subroutine call flushes the input ring. The KSRFLUSH ioctl subroutine call loads the starting address of the reporting area into the input ring head and tail pointers, then clears the overflow flag.

Parameter

Item Description
FileDescriptor Specifies the open file descriptor for the keyboard.