From: Andreas Jellinghaus <aj@dungeon.inka.de>
To: linux-hotplug@vger.kernel.org
Subject: MODALIAS to stay
Date: Tue, 10 Jul 2007 08:08:00 +0000 [thread overview]
Message-ID: <200707101008.00349.aj@dungeon.inka.de> (raw)
I have udev rules lines like this:
SYSFS{idVendor}="0973", SYSFS{idProduct}="0001", RUN+="/lib/udev/openct_usb"
and
SYSFS{bInterfaceClass}="0b", SYSFS{bInterfaceSubClass}="00",
SYSFS{bInterfaceProtocol}="00" RUN+="/lib/udev/openct_usb"
Now I see the kernel has a MODALIAS line that contains all the information I
need. "usb:v0973p0001*" or "usb:*ic0Bisc00*" would match the same way as
using sysfs.
So I wonder: can I match MODALIAS like this somehow in udev rules?
and is there any reason not to use MODALIAS?
as far as I know the kernel creates the MODALIAS line in
drivers/usb/core/driver.c so I guess it is always part of an event and thus
shouldn't have any timing problem, right?
Thanks for your help.
Regards, Andreas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2007-07-10 8:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 8:08 Andreas Jellinghaus [this message]
2007-07-10 9:48 ` MODALIAS to stay Kay Sievers
2007-07-10 11:11 ` Andreas Jellinghaus
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=200707101008.00349.aj@dungeon.inka.de \
--to=aj@dungeon.inka.de \
--cc=linux-hotplug@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 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).