In addition to KT_DEAD which has limited support for diacriticals, there
is KT_DEAD2 that can support 256 criticals, so let's advertise it in
<linux/keyboard.h>.
Signed-off-by: Samuel Thibault <[email protected]>
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index a3c984d..33a63f6 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -56,6 +56,7 @@ extern int unregister_keyboard_notifier(struct notifier_block *nb);
#define KT_ASCII 9
#define KT_LOCK 10
#define KT_SLOCK 12
+#define KT_DEAD2 13
#define KT_BRL 14
#define K(t,v) (((t)<<8)|(v))
On Sat, 13 Jun 2009, Samuel Thibault wrote:
>
> In addition to KT_DEAD which has limited support for diacriticals, there
> is KT_DEAD2 that can support 256 criticals, so let's advertise it in
> <linux/keyboard.h>.
Can you do more of an explanation for this? KT_DEAD2 does not show up in a
kernel grep, so..
Linus
Linus Torvalds, le Sat 13 Jun 2009 17:07:31 -0700, a ?crit :
> On Sat, 13 Jun 2009, Samuel Thibault wrote:
> >
> > In addition to KT_DEAD which has limited support for diacriticals, there
> > is KT_DEAD2 that can support 256 criticals, so let's advertise it in
> > <linux/keyboard.h>.
>
> Can you do more of an explanation for this? KT_DEAD2 does not show up in a
> kernel grep, so..
That's precisely why I'm defining it. Other KT_* aren't usually
used from the kernel itself, but from userland. The kernel part is
the k_dead2 function in drivers/char/keyboard.c, like k_dead is for
KT_DEAD, the relation being in the K_HANDLERS initializer, sorry for not
mentioning it in my first mail.
Samuel