-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 22 Dec 2002 09:57, Anton wrote:
> While parsing dmesg, should I look for lines
>       input0: blabla
>       input1: foobar
> and when found my device string, take a number after "input" as event
> file number ("input0: blabla" = "/dev/input/event0")?
There should be a 1-1 correspondence between event nodes and the input device 
number, assuming that event support is enabled in the kernel.
I'm not sure that parsing dmesg logs is portable or stable, so you may have to 
test it across each kernel you want to use.

I still recommend using a helper application (or doing it all in C).

Brad

BTW: The best mailing list for this was probably the linuxconsole mailing 
list.
- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+BReMW6pHgIdAuOMRAtzJAJ9T7ijuPIlthIIzkq7DKUm+yN/amgCfQb+O
hBxVueJcdYGeFRWuicjDjLA=
=bfbl
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to