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.
This ioctl subroutine call is part of Base Operating System (BOS) Runtime.