linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Event number sequence
@ 2010-02-22 16:46 Abraham Arce
  2010-02-22 18:42 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Abraham Arce @ 2010-02-22 16:46 UTC (permalink / raw)
  To: linux-input

Hi,

I have tested the insertion/removel of 2 different drivers (keyboard
and touchscreen), what I have seen is that the sequence in the number
of the event is always different aty the time of registering them, I'd
expect that if I remove a module, the event number is freed, making it
available for the next time but this is not the case

My output looks like

#insmod myinputdriver.ko
/class/input/input0
#rmmod myinputdriver.ko
#insmod myinputdriver.ko
/class/input/input1
#rmmod myinputdriver.ko

Is there any specific function from the input subsystem to free it? Do
we have a limitation on the input subsystem?

Best Regards
Abraham

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Event number sequence
  2010-02-22 16:46 Event number sequence Abraham Arce
@ 2010-02-22 18:42 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2010-02-22 18:42 UTC (permalink / raw)
  To: Abraham Arce; +Cc: linux-input

Hi Abraham,

On Mon, Feb 22, 2010 at 10:46:28AM -0600, Abraham Arce wrote:
> Hi,
> 
> I have tested the insertion/removel of 2 different drivers (keyboard
> and touchscreen), what I have seen is that the sequence in the number
> of the event is always different aty the time of registering them, I'd
> expect that if I remove a module, the event number is freed, making it
> available for the next time but this is not the case
>

The number you are referring to is not "event number" but just a part of
input device name. It always monotonically increases and is not stable
across reboots.
 
> My output looks like
> 
> #insmod myinputdriver.ko
> /class/input/input0
> #rmmod myinputdriver.ko
> #insmod myinputdriver.ko
> /class/input/input1
> #rmmod myinputdriver.ko
> 
> Is there any specific function from the input subsystem to free it?

No, as we do not track these numbers there is no way to "free" it.

> Do
> we have a limitation on the input subsystem?
> 

Not that I can see (at least not in this particular area ;) ). It would
be helpful to know what kind of issue you are trying to solve.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-22 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 16:46 Event number sequence Abraham Arce
2010-02-22 18:42 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).