Skip to contentSkip to conversation

advertise KT_DEAD2

PATCH In review Samuel Thibault 2 participants 3 messages Jun 13, 2009 – Jun 14, 2009

lore
Share & tools
lore
#0 lore raw

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
index a3c984d..33a63f6 100644
@@ -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))
#1 lore raw
Quoted 4 lines · Samuel Thibault

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

#2 lore raw
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_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