Provides access to the natively attached keyboard.
The kbd special file is the interface to the native keyboard. It provides an interface through which applications can receive operator input from the keyboard, control the keyboard LED's, and changing various keyboard parameters. The special file also allows an application to send an audible signal to the operator via the speaker located within the keyboard.
The sound volume, click volume, typematic rate and typematic delay are configurable by the application through the ioctl subroutine. These changes are not reflected in the ODM database. To change these attributes in the ODM database, use the chhwkbd command.
This subroutine call creates a channel between the application and the natively attached keyboard. Two channels are supported. The open subroutine call is processed normally except that the MODE and Oflag parameters are ignored. All keyboard input is flushed until an input ring is established. Only the input ring associated with the most recent open receives input reports.
When the kbd device has been opened twice, input is reported through the input ring registered previous to the first open, after the close subroutine call.
The keyboard device driver does not return nor accept data via read and write. These calls behave as if the call was made to /dev/null. Input data is received from the input drivers via the input ring.
The keyboard device driver supports the following ioctl commands:
|Return devinfo structure.
|Control keyboard click.
|Enable/disable diagnostics mode (user mode only).
|Set/reset keyboard LED's.
|Enable/disable keep alive poll (user mode only).
|Acknowledge keep alive poll (user mode only).
|Query keyboard device identifier.
|Query keyboard service vector (kernel mode only).
|Register input ring.
|Flush input ring.
|Set typamatic delay.
|Set typamatic rate.
|Set alarm volume
The error codes can be found in the /usr/include/sys/errno.h file.
|indicates insufficient authority to access address or invalid address.
|indicates that an I/O error occurred.
|indicates there was insufficient memory for required paging operation.
|indicates there was insufficient file system or paging space.
|indicates that an invalid argument was specified.
|indicates the request was interrupted by signal.
|indicates that a permanent error occurred.
|indicates the device is busy.
|indicates unsupported device number was specified.
|indicates an unsupported device or device type mismatch.
The kbd special file is part of Base Operating System (BOS) Runtime.
|Contains declarations for ioctl commands and input ring report format.
The close subroutine, ioctl subroutine, open subroutine, read subroutine, write subroutine.
Special Files Overview.