From: James S. <jsi...@ac...> - 2000-06-09 00:06:59
|
> Well, I have one /dev/input/eventX per one input devices, so that every > application receiving input events doesn't have to get them from all > devices in the system. That can end up being alot of devices. I see you have a ioctl to tell what device you are attached to. The next question is how to hand a multiheaded system. You don't want a user to grab someone else mouse at a workstation 3 offices down. Hum? We will have to think about this. I was think about keybdev.c. Not what it does now but using it to initailize the keyboard indepedent of CONFIG_VT. What about a system with only a serial console and if someone attaches a keyboard. In this case we don't have /dev/tty but we should get a /dev/input/event0 for it. A cool app would grab data from teh keyboard and then do a write on /dev/ttyS0. PS/2 Keyboard data could be displayed on a serial console then :) So we should initalize the keyboard outside of keyboard.c to make it avaliable in any system. Then keyboard.c would be compiled in a VT system to be translate the events to a tty keymap. I'm using struct vt_struct to represent each physical VT (a display and a physical keyboard). I'm using number in input_dev as the keyboard identifier in vt_struct. For the function kbd_keycode I pass in this number. This way I can look threw the vt_structs to find the VT the keyboard is attached to. Once I find it I have the vt_struct that represents this physical VT. The only problem is you use struct tty_struct which I can't readly grab from vt_struct. Hum? I'm going to have to think some more. I realize now I need vt_struct as a link list. A link list will not be that big of performace hit to search since it will never have large size for multihead systems. Ug!!! I have to think of a way to tty visiable without using ttytab. In the future the ttys will dynamic in number so a static array wouldn't work. Q: Why did they deprecate a.out support in linux? A: Because a nasty coff is bad for your elf. James Simmons [jsi...@li...] ____/| fbdev/console/gfx developer \ o.O| http://www.linux-fbdev.org =(_)= http://linuxgfx.sourceforge.net U http://linuxconsole.sourceforge.net |