Mouse minor chaos

Geert Uytterhoeven (
Mon, 15 Dec 1997 13:26:44 +0100 (CET)

What's the logic behind the different mouse minors for different busmice?

Wouldn't it be better to dynamically assign a minor when a driver registers a
mouse? That way the users doesn't have to care anymore about the device names
that are used for his mice, all he needs to know is that his first mouse is
/dev/mouse0, his second mouse is /dev/mouse1, etc...

Another advantage is that you don't need to register a mouse minor if you write
a new busmouse driver (e.g. the ADB mouse driver (work in progress)).

Of course the user still needs to know the types of his mice, but most busmice
behave the same anyway (e.g. /dev/amigamouse, /dev/atarimouse and /dev/adbmouse
all use the standard busmouse protocol).



P.S. The same is true for the various serial major/minor numbers. Chaos!

Geert Uytterhoeven           
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium