|
From: Jean-Daniel P. <jd...@di...> - 2006-01-05 10:00:24
|
as from 2.6.15 I had to tweak faketty.c with the patch below in
order to match kernel changes.
I also had to create by myself the individual mouse devices nodes tha=
t
use to sit in /dev/input/mouse0, /dev/input/mouse1...
on my debian-sarge there's a tmpfs over /dev, and I'm not sure who's
duty it is to create those devices on the fly. is-it related to the
former devs ?
anyway, the patch below did the trick for me (regardless of those mou=
se
problems) :
--- faketty-0.04/faketty.c 2006-01-05 10:08:43.000000000 +0100
+++ /home/jd/src/faketty-0.04/faketty.c 2005-10-01 17:14:16.000000000 +02=
00
@@ -805,16 +807,9 @@ static struct input_handle *ftty_connect
MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + mino=
r),
dev->dev, "ftty%d", minor);
#else
-#if LINUX_VERSION_CODE >=3D KERNEL_VERSION(2,6,15)
- class_device_create(&input_class,
- NULL,
+ class_device_create(input_class,
MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + mino=
r),
dev->dev, "ftty%d", minor);
-#else
- class_device_create(&input_class,
- MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + mino=
r),
- dev->dev, "ftty%d", minor);
-#endif
#endif
=20
=20
@@ -828,14 +823,9 @@ static void ftty_disconnect(struct input
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
class_simple_device_remove(MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + e=
vdev->minor));
#else
-#if LINUX_VERSION_CODE >=3D KERNEL_VERSION(2,6,15)
- class_device_destroy(&input_class,
- MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evde=
v->minor));
-#else
class_device_destroy(input_class,
MKDEV(INPUT_MAJOR, FTTY_MINOR_BASE + evde=
v->minor));
#endif
-#endif
devfs_remove("input/ftty%d", evdev->minor);
evdev->exist =3D 0;
--=20
Jean-Daniel Pauget
T=E9l: +33 (0) 676 952 746
2, rue Andr=E9 PELCA
50580 Denneville-Plage
France
|