linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [gentoo-desktop] Udev rules and kernel device names
@ 2004-10-25  5:51 Greg KH
  2004-10-25  6:14 ` Lindsay Haisley
  0 siblings, 1 reply; 2+ messages in thread
From: Greg KH @ 2004-10-25  5:51 UTC (permalink / raw)
  To: linux-hotplug

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


-------------------------------------------------------
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

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

* Re: [gentoo-desktop] Udev rules and kernel device names
  2004-10-25  5:51 [gentoo-desktop] Udev rules and kernel device names Greg KH
@ 2004-10-25  6:14 ` Lindsay Haisley
  0 siblings, 0 replies; 2+ messages in thread
From: Lindsay Haisley @ 2004-10-25  6:14 UTC (permalink / raw)
  To: linux-hotplug

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

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

end of thread, other threads:[~2004-10-25  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25  5:51 [gentoo-desktop] Udev rules and kernel device names Greg KH
2004-10-25  6:14 ` Lindsay Haisley

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).