1UDEVINFO(8) udevinfo UDEVINFO(8)
2
3
4
6 udevinfo - query udev device information
7
9 udevinfo [--query=query-type] [--path=devpath] [--name=node] [--root]
10 [--attribute-walk] [--export-db] [--version] [--help]
11
13 udevinfo queries the udev database for device information stored in the
14 udev database. It can also query the properties of a device from its
15 sysfs representation to help creating udev rules that match this
16 device.
17
19 --query=type
20 Query the database for specified type of device data. It needs the
21 --path or --name to identify the specified device. Valid queries
22 are: name, symlink, path, env, all.
23
24 --path=devpath
25 The devpath of the device to query.
26
27 --name=node
28 The name of the device node or a symlink to query
29
30 --root
31 The udev root directory: /dev. If used in conjunction with a name
32 or symlink query, the query returns the absolute path including the
33 root directory.
34
35 --attribute-walk
36 Print all sysfs properties of the specified device that can be used
37 in udev rules to match the specified device. It prints all devices
38 along the chain, up to the root of sysfs that can be used in udev
39 rules.
40
41 --export-db
42 Export the content of the udev database.
43
44 --version
45 Print version.
46
47 --help
48 Print help text.
49
51 Written by Kay Sievers <kay.sievers@vrfy.org>.
52
54 udev(7)
55
56
57
58udev August 2005 UDEVINFO(8)