Keyboard
The ioctl subroutine provides certain keyboard operations that are described in this section.
| Item | Description |
|---|---|
| IOCINFO | Returns the devinfo structure. |
| KSQUERYID | Queries the keyboard device identifier. |
| KSQUERYSV | Queries the keyboard service vector. |
| KSREGRING | Registers the input ring. |
| KSRFLUSH | Flushes the input ring. |
| KSLED | Sets and resets the keyboard LEDs. |
| KSCFGCLICK | Configures the clicker. |
| KSVOLUME | Sets the alarm volume. |
| KSALARM | Sounds the alarm. |
| KSTRATE | Sets the repeat rate. |
| KSTDELAY | Sets the delay before repeat. |
| KSKAP | Enables and disables the keep-alive poll. |
| KSKAPACK | Acknowledges the keep-alive poll. |
| KSDIAGMODE | Enables and disables the diagnostics mode. |
Note:
- A non-active channel processes only IOCINFO, KSQUERYID, KSQUERYSV, KSREGRING, KSRFLUSH, KSKAP, and KSKAPACK. All other ioctl subroutine calls are ignored without error.
- The KSLED, KSCFGCLICK, KSVOLUME, KSALARM, KSTRATE, and KSTDELAY ioctl subroutine calls return an EBUSY error in the errno global variable when the keyboard is in diagnostics mode.
- The KSQUERYSV ioctl subroutine call is only available when the channel is open from kernel mode (with the fp_open kernel service).
- The KSKAP, KSKAPACK, KSDIAGMODE ioctl subroutine calls are only available when the channel is open from user mode.