linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Evdev uniq id
@ 2010-11-05  4:42 Russell Shaw
  2010-11-06  9:45 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Russell Shaw @ 2010-11-05  4:42 UTC (permalink / raw)
  To: linux-input

Hi,
In X, i want an application program to apply settings to a specific
mouse/puck device, regardless of how many other devices have been
plugged in since the last session.

Prefereably, a manufacturer-model-serial_number call would be available
from evdev.

Minimally, a uniq non-changing ID could be useful. I found this in
linux-2.6.31.1/drivers/input/evdev.c:

   if (_IOC_NR(cmd) == _IOC_NR(EVIOCGUNIQ(0)))
     return str_to_user(dev->uniq, _IOC_SIZE(cmd), p);

How is "dev->uniq" constructed?

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

end of thread, other threads:[~2010-11-06 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05  4:42 Evdev uniq id Russell Shaw
2010-11-06  9:45 ` Dmitry Torokhov
2010-11-06  9:49   ` Russell Shaw
2010-11-06 14:47     ` Chris Bagwell
2010-11-06 15:39       ` 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).