Gentoo Archives: gentoo-desktop

From: Lindsay Haisley <fmouse-gentoo@×××.com>
To: Greg KH <greg@×××××.com>
Cc: gentoo-desktop@l.g.o, linux-hotplug-devel@×××××××××××××××××.net
Subject: Re: [gentoo-desktop] Udev rules and kernel device names
Date: Mon, 25 Oct 2004 06:15:01
Message-Id: 20041025061455.GA23239@fmp.com
1 Thus spake Greg KH on Mon, Oct 25, 2004 at 12:51:32AM CDT
2 > On Sun, Oct 24, 2004 at 11:40:34PM -0500, Lindsay Haisley wrote:
3 > > After reading a bit of the udev code I finally answered my own question on
4 > > this. The information required to match KERNEL keys in rules _is_ in sysfs,
5 > > it's just that it's not well documented anywhere.
6 >
7 > 'man udevinfo' shows that documentation :)
8 >
9 > udevinfo -a -p /sys/block/hda
10 >
11 > greg k-h
12
13 How about this, as output from kscan:
14
15 $ ./kscan
16
17 block: KERNEL="fd0"
18 KERNEL="hda"
19 KERNEL="hda1"
20 KERNEL="hda2"
21 KERNEL="hda3"
22 KERNEL="hda4"
23 KERNEL="hdc"
24 KERNEL="md0"
25 KERNEL="sda"
26 KERNEL="sda1"
27 KERNEL="sdb"
28 KERNEL="sdb1"
29 KERNEL="sdc"
30 KERNEL="sdc1"
31 KERNEL="sdc2"
32 KERNEL="sdc3"
33 KERNEL="sdc5"
34 KERNEL="sdd"
35 KERNEL="sdd1"
36 KERNEL="sde"
37 KERNEL="sde1"
38 KERNEL="dm-0"
39 KERNEL="dm-1"
40 KERNEL="dm-2"
41 KERNEL="dm-3"
42
43 input: KERNEL="event0"
44 KERNEL="event1"
45 KERNEL="event2"
46 KERNEL="mice"
47 KERNEL="mouse0"
48 <snip...>
49
50 copy-n-paste into rules :-)
51
52 --
53 Lindsay Haisley | "Fighting against human | PGP public key
54 FMP Computer Services | creativity is like | available at
55 512-259-1190 | trying to eradicate | <http://pubkeys.fmp.com>
56 http://www.fmp.com | dandelions" |
57 | (Pamela Jones) |
58
59 --
60 gentoo-desktop@g.o mailing list