Registers input ring.
#include <sys/inputdd.h> int ioctl (FileDescriptor, KSREGRING, Arg) int FileDescriptor; caddr_t *Arg;
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.
FileDescriptor | Specifies the open file descriptor for the keyboard. |
Arg | Specifies the address of the uregring or kregring structure. |
This ioctl subroutine call is part of Base Operating System (BOS) Runtime.