From: Lindsay Haisley <fmouse-gentoo@fmp.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [gentoo-desktop] Udev rules and kernel device names
Date: Mon, 25 Oct 2004 06:14:56 +0000 [thread overview]
Message-ID: <20041025061455.GA23239@fmp.com> (raw)
In-Reply-To: <20041025055132.GA15620@kroah.com>
Thus spake Greg KH on Mon, Oct 25, 2004 at 12:51:32AM CDT
> On Sun, Oct 24, 2004 at 11:40:34PM -0500, Lindsay Haisley wrote:
> > After reading a bit of the udev code I finally answered my own question on
> > this. The information required to match KERNEL keys in rules _is_ in sysfs,
> > it's just that it's not well documented anywhere.
>
> 'man udevinfo' shows that documentation :)
>
> udevinfo -a -p /sys/block/hda
>
> greg k-h
How about this, as output from kscan:
$ ./kscan
block: KERNEL="fd0"
KERNEL="hda"
KERNEL="hda1"
KERNEL="hda2"
KERNEL="hda3"
KERNEL="hda4"
KERNEL="hdc"
KERNEL="md0"
KERNEL="sda"
KERNEL="sda1"
KERNEL="sdb"
KERNEL="sdb1"
KERNEL="sdc"
KERNEL="sdc1"
KERNEL="sdc2"
KERNEL="sdc3"
KERNEL="sdc5"
KERNEL="sdd"
KERNEL="sdd1"
KERNEL="sde"
KERNEL="sde1"
KERNEL="dm-0"
KERNEL="dm-1"
KERNEL="dm-2"
KERNEL="dm-3"
input: KERNEL="event0"
KERNEL="event1"
KERNEL="event2"
KERNEL="mice"
KERNEL="mouse0"
<snip...>
copy-n-paste into rules :-)
--
Lindsay Haisley | "Fighting against human | PGP public key
FMP Computer Services | creativity is like | available at
512-259-1190 | trying to eradicate | <http://pubkeys.fmp.com>
http://www.fmp.com | dandelions" |
| (Pamela Jones) |
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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
prev parent reply other threads:[~2004-10-25 6:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-25 5:51 [gentoo-desktop] Udev rules and kernel device names Greg KH
2004-10-25 6:14 ` Lindsay Haisley [this message]
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=20041025061455.GA23239@fmp.com \
--to=fmouse-gentoo@fmp.com \
--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).