Name

udevadm — udev management tool

Synopsis

udevadm [--debug] [--version] [--help]

udevadm info options

udevadm trigger [options]

udevadm settle [options]

udevadm control command

udevadm monitor [options]

udevadm test [options] devpath

OPTIONS

--debug

Print debug messages to stderr.

--version

Print version number.

--help

Print help text.

udevadm info options

Queries the udev database for device information stored in the udev database. It can also query the properties of a device from its sysfs representation to help creating udev rules that match this device.

--query=type

Query the database for specified type of device data. It needs the --path or --name to identify the specified device. Valid queries are: name, symlink, path, property, all.

--path=devpath

The devpath of the device to query.

--name=file

The name of the device node or a symlink to query

--root

The udev root directory: /dev. If used in conjunction with a name or symlink query, the query returns the absolute path including the root directory.

--attribute-walk

Print all sysfs properties of the specified device that can be used in udev rules to match the specified device. It prints all devices along the chain, up to the root of sysfs that can be used in udev rules.

--export

Print output as key/value pairs. Values are enclosed in single quotes.

--export-prefix=name

Add a prefix to the key name of exported values.

--device-id-of-file=file

Print major/minor numbers of the underlying device, where the file lives on.

--export-db

Export the content of the udev database.

--convert-db

Convert the database of an earlier udev version to the current format. This is only useful on udev version upgrades, where the content of the old database might be needed for the running system, and it is not sufficient for it, to be re-created with the next bootup.

--version

Print version.

--help

Print help text.

udevadm trigger [options]

Request device events from the kernel. Primarily used to replay events at system coldplug time.

--verbose

Print the list of devices which will be triggered.

--dry-run

Do not actually trigger the event.

--type=type

Trigger a specific type of devices. Valid types are: devices, subsystems, failed. The default value is devices.

--action=action

Type of event to be triggered. The default value is change.

--subsystem-match=subsystem

Trigger events for devices which belong to a matching subsystem. This option can be specified multiple times and supports shell style pattern matching.

--subsystem-nomatch=subsystem

Do not trigger events for devices which belong to a matching subsystem. This option can be specified multiple times and supports shell style pattern matching.

--attr-match=attribute=value

Trigger events for devices with a matching sysfs attribute. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching. If no value is specified, the existence of the sysfs attribute is checked. This option can be specified multiple times.

--attr-nomatch=attribute=value

Do not trigger events for devices with a matching sysfs attribute. If a value is specified along with the attribute name, the content of the attribute is matched against the given value using shell style pattern matching. If no value is specified, the existence of the sysfs attribute is checked. This option can be specified multiple times.

--property-match=property=value

Trigger events for devices with a matching property value. This option can be specified multiple times and supports shell style pattern matching.

--tag-match=property

Trigger events for devices with a matching tag. This option can be specified multiple times.

--sysname-match=name

Trigger events for devices with a matching sys device name. This option can be specified multiple times and supports shell style pattern matching.