lkml.org 
[lkml]   [1997]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectMouse minor chaos

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).

Greetings,

Geert

P.S. The same is true for the various serial major/minor numbers. Chaos!
--
Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.045 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site