On Wed, Apr 05, 2000 at 07:58:33PM +0200, Alessandro Rubini wrote:
>
> > My USB modules have varying semantics:
> > [...]
> > Mouse and keyboard device drivers have a non-zero usage count whenever
> > they are plugged in. Any explicit mouse open further increments the usage
> > count. Keyboards [...]
>
> Hmm... not in my experience, as shown below, taken in a 2.3.99-pre3 host
> with an usb mouse plugged in:
Well, I think the best solution to this problem would be to split the
usage count into two values 'used' and 'rmmodable'. Because there are
modules (namely USB) that are used and are possible to rmmod, although
it is not desirable to do that automatically. What do you all think?
We could increase their usecount to avoid automatic removal, but we'd lose
any method of removal along the way ...
>
> rudo.root# cat /proc/modules
> usb-ohci 13528 0 (unused)
> usbcore 45504 1 [usb-ohci]
>
> ok.
>
> rudo.root# modprobe usbmouse
> rudo.root# cat /proc/modules
> usbmouse 1336 0 (unused)
> input 1936 2 [usbmouse]
> usb-ohci 13528 0 (unused)
> usbcore 45504 1 [usbmouse usb-ohci]
>
> note, usbmouse unused
>
> rudo.root# modprobe mousedev
> rudo.root# cat /proc/modules
> mousedev 3676 0
> usbmouse 1336 0 (unused)
> input 1936 2 [mousedev usbmouse]
> usb-ohci 13528 0 (unused)
> usbcore 45504 1 [usbmouse usb-ohci]
>
> mousedev unused too. Use it:
>
> rudo.root# cat /dev/usbmouse &
> [1] 1944
> rudo.root# cat /proc/modules
> mousedev 3676 1
> usbmouse 1336 0 (unused)
> input 1936 2 [mousedev usbmouse]
> usb-ohci 13528 0 (unused)
> usbcore 45504 1 [usbmouse usb-ohci]
>
> mousedev is used, but usbmouse is not. Yes, moving the mouse produces
> data to /dev/usbmouse (and garbles the screen according to job %1.
>
> I think your description is the one I would like to see, but the current
> implementation is not like that.
--
Vojtech Pavlik
SuSE Labs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]