From: Russell Shaw <rjshaw@netspace.net.au>
To: linux-input <linux-input@vger.kernel.org>
Subject: Evdev uniq id
Date: Fri, 05 Nov 2010 15:42:19 +1100 [thread overview]
Message-ID: <4CD38B2B.3080200@netspace.net.au> (raw)
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?
next reply other threads:[~2010-11-05 4:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 4:42 Russell Shaw [this message]
2010-11-06 9:45 ` Evdev uniq id Dmitry Torokhov
2010-11-06 9:49 ` Russell Shaw
2010-11-06 14:47 ` Chris Bagwell
2010-11-06 15:39 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CD38B2B.3080200@netspace.net.au \
--to=rjshaw@netspace.net.au \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.