X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.xml;h=bd099479f24a7f2eabdcf61a8052462a3ebcb9db;hb=684e935fafdf75c57f1cfd6b91666353270bce8d;hp=5e5388da51cd691df38e56678f90b88ac5940e8e;hpb=53fc01d5073962e94cb32b686c0146b08ea8fef5;p=elogind.git diff --git a/udev.xml b/udev.xml index 5e5388da5..bd099479f 100644 --- a/udev.xml +++ b/udev.xml @@ -84,10 +84,11 @@ value in the configuration file. Every line in the rules file contains at least one key value pair. There are two kind of keys, match and assignment keys. If all match keys are matching against its value, the rule gets applied and the - assign keys get the specified value assigned. A matching rule may specify the - name of the device node, add a symlink pointing to the node, or run a specified - program as part of the event handling. If no matching rule is found, the default - device node name is used. + assign keys get the specified value assigned. + + A matching rule may specify the name of the device node, add a symlink + pointing to the node, or run a specified program as part of the event handling. + If no matching rule is found, the default device node name is used. A rule may consists of a list of one or more key value pairs separated by a comma. Each key has a distinct operation, depending on the used operator. Valid @@ -131,7 +132,11 @@ - The following key names can be used to match against device properties: + The following key names can be used to match against device properties. + Some of the keys also match against properties of the parent devices in sysfs, + not only the device that has generated the event. If multiple keys that match + a parent device are specified in a single rule, all these keys must match at + one and the same parent device. @@ -160,14 +165,13 @@ Match the subsystem of the event device. - @@ -205,7 +209,7 @@ Search the devpath upwards for a device with matching sysfs attribute values. - Up to five keys can be specified per rule. All attributes + Up to five keys can be specified per rule, but all of them must match on the same device. Trailing whitespace in the attribute values is ignored, if the specified match value does not contain trailing whitespace itself. @@ -224,8 +228,8 @@ Execute external program. The key is true, if the program returns - without exit code zero. The whole event environment is available to the - executed program. The program's output printed to stdout is available for + with exit code zero. The whole event environment is available to the + executed program. The program's output printed to stdout, is available in the RESULT key.