Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

input: Documentation: corrections for notifier.rst

Add 'ledstate' to the keyboard_notifier_param struct info and tell
which header file contains that struct.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Link: https://lore.kernel.org/r/20210302223523.20130-7-rdunlap@infradead.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Randy Dunlap and committed by
Jonathan Corbet
365c6a3e 338b660b

+2 -1
+2 -1
Documentation/input/notifier.rst
··· 4 4 5 5 One can use register_keyboard_notifier to get called back on keyboard 6 6 events (see kbd_keycode() function for details). The passed structure is 7 - keyboard_notifier_param: 7 + keyboard_notifier_param (see <linux/keyboard.h>): 8 8 9 9 - 'vc' always provide the VC for which the keyboard event applies; 10 10 - 'down' is 1 for a key press event, 0 for a key release; 11 11 - 'shift' is the current modifier state, mask bit indexes are KG_*; 12 + - 'ledstate' is the current LED state; 12 13 - 'value' depends on the type of event. 13 14 14 15 - KBD_KEYCODE events are always sent before other events, value is the keycode.