Re: stuffing characters to keyboard buffer.

From: Dmitry Torokhov
Date: Mon May 02 2005 - 12:05:47 EST


Hi,

On Monday 02 May 2005 11:29, P.Manohar wrote:
>
> hai,
> I want to stuff the characters received on a serial line into the
> keyboard buffer, so that they will be send to applications as if they are
> coming from keyboard irrespective of console or x-windows mode.
>
> For this purpose, I planned to use ioctls. Can anybody tell how to
> send an ioctl to keyboard driver?
>

If you are working with 2.6 you'd need to create an input device, probably
working on top of serport driver, like sermouse does. You may also want to
take a look at uinput driver - it allows to create userspace-driven input
devices.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/