Illuminates and darkens LEDs on the keyboard.
#include <sys/inputdd.h>
int ioctl (FileDescriptor, KSLED, Arg)
int FileDescriptor, * Arg;
The KSLED ioctl subroutine call illuminates and darkens the LEDs on the natively attached keyboard. The Arg parameter points to a bit mask (one bit per LED) that specifies the state of each keyboard LED.
The current state of the keyboard LEDs is returned in the input ring event report for the keyboard.
When keyboard diagnostics are enabled, the KSLED ioctl operation fails and sets the errno global variable to a value of EBUSY.
Item | Description |
---|---|
Arg | Specifies the address of the LED bit mask. The bit mask
can be any combination of the following values ORed together:
|
FileDescriptor | Specifies the open file descriptor for the keyboard. |