advertise KT_DEAD2
PATCH 1/1 advertise KT_DEAD2
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>.
include/linux/keyboard.h +1 -0
@@ -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))
Quoted 4 lines · Samuel Thibault
In addition to
KT_DEADwhich has limited support for diacriticals, there isKT_DEAD2that 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
Quoted 8 lines · Linus Torvalds, le Sat 13 Jun 2009 17:07:31 -0700, a écrit :
Quoted 4 lines · Samuel Thibault
In addition to
KT_DEADwhich has limited support for diacriticals, there isKT_DEAD2that can support 256 criticals, so let's advertise it in <linux/keyboard.h>.Can you do more of an explanation for this?
KT_DEAD2does 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