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: convert keyboard notifier docs into ReST format

This file require minimum adjustments to be a valid ReST file.
Do it, in order to be able to parse it with Sphinx.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Mauro Carvalho Chehab and committed by
Dmitry Torokhov
2f438935 eba31a3a

+6 -4
+6 -4
Documentation/input/notifier.txt
··· 1 + ================= 1 2 Keyboard notifier 3 + ================= 2 4 3 5 One can use register_keyboard_notifier to get called back on keyboard 4 6 events (see kbd_keycode() function for details). The passed structure is ··· 25 23 order to "eat" the event: the notify loop is stopped and the keyboard event is 26 24 dropped. 27 25 28 - In a rough C snippet, we have: 26 + In a rough C snippet, we have:: 29 27 30 - kbd_keycode(keycode) { 28 + kbd_keycode(keycode) { 31 29 ... 32 30 params.value = keycode; 33 31 if (notifier_call_chain(KBD_KEYCODE,&params) == NOTIFY_STOP) ··· 49 47 return; 50 48 apply keysym; 51 49 notifier_call_chain(KBD_POST_KEYSYM,&params); 52 - } 50 + } 53 51 54 - NOTE: This notifier is usually called from interrupt context. 52 + .. note:: This notifier is usually called from interrupt context.