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>
+=================
Keyboard notifier
+=================
One can use register_keyboard_notifier to get called back on keyboard
events (see kbd_keycode() function for details). The passed structure is
order to "eat" the event: the notify loop is stopped and the keyboard event is
dropped.
-In a rough C snippet, we have:
+In a rough C snippet, we have::
-kbd_keycode(keycode) {
+ kbd_keycode(keycode) {
...
params.value = keycode;
if (notifier_call_chain(KBD_KEYCODE,¶ms) == NOTIFY_STOP)
return;
apply keysym;
notifier_call_chain(KBD_POST_KEYSYM,¶ms);
-}
+ }
-NOTE: This notifier is usually called from interrupt context.
+.. note:: This notifier is usually called from interrupt context.