mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] advertise KT_DEAD2
@ 2009-06-13 12:52 Samuel Thibault
  2009-06-14  0:07 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2009-06-13 12:52 UTC (permalink / raw)
  To: akpm, torvalds; +Cc: linux-kernel, Anton Zinoviev

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 <samuel.thibault@ens-lyon.org>

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))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] advertise KT_DEAD2
  2009-06-13 12:52 [PATCH] advertise KT_DEAD2 Samuel Thibault
@ 2009-06-14  0:07 ` Linus Torvalds
  2009-06-14  0:33   ` Samuel Thibault
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2009-06-14  0:07 UTC (permalink / raw)
  To: Samuel Thibault; +Cc: akpm, linux-kernel, Anton Zinoviev



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] advertise KT_DEAD2
  2009-06-14  0:07 ` Linus Torvalds
@ 2009-06-14  0:33   ` Samuel Thibault
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Thibault @ 2009-06-14  0:33 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: akpm, linux-kernel, Anton Zinoviev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-14  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-13 12:52 [PATCH] advertise KT_DEAD2 Samuel Thibault
2009-06-14  0:07 ` Linus Torvalds
2009-06-14  0:33   ` Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®