> Well, I don't know whether this is good or bad. Yes, this makes the
> module stay in the kernel as long as there are any mice or keyboards
> connected.
>
> I don't know if this is desirable.
I think it is.
> I myself, while developing, depend quite a lot on inserting/removing
> these modules most of the time without having to unplug the mice.
Yes, but you should acknowledge that this need only affects you as
an individual. What about this:
#include <module.h>
#ifdef USB_BEING_DEVELOPED /* to ease rmmod/insmod with mouse in */
# undef MOD_INC_USE_COUNT
# define MOD_INC_USE_COUNT /* nothing */
# undef MOD_DEC_USE_COUNT
# define MOD_DEC_USE_COUNT /* nothing */
#endif
and then
export CC="gcc -DUSB_BEING_DEVELOPED~
?
Note that I definitely don't like ifdef's in the middle of code, but
this can go at the beginning of the files.
/alessandro
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]