summaryrefslogtreecommitdiff
path: root/udev_rules.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-19 16:06:25 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-19 16:06:25 +0200
commit95776dc6ec174f47fa4dd4d8abf5d457223e5dd4 (patch)
treeff9f2e24f8333d460509c7fb987ce2ecb37605e1 /udev_rules.h
parenteef7c9a385575375a3e3310900022b37777aeb6c (diff)
consistent key naming to match only the event device or include all parent devices
This scheme is more consistent and makes it obvious if a match happens against the event device only, or the full chain of parent devices. The old key names are now: BUS -> SUBSYSTEMS ID -> KERNELS SYSFS -> ATTRS DRIVER -> DRIVERS Match keys for the event device: KERNEL SUBSYSTEM ATTR DRIVER (in a future release, for now the same as DRIVERS) Match keys for all devices along the parent device chain: KERNELS SUBSYSTEMS ATTRS DRIVERS ID, BUS, SYSFS are no longer mentioned in the man page but still work. DRIVER must be converted to DRIVERS to match the new scheme. For now, an error is logged, if DRIVER is used. In a future release, the DRIVER key behaviour will change.
Diffstat (limited to 'udev_rules.h')
-rw-r--r--udev_rules.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/udev_rules.h b/udev_rules.h
index 2c956fcccc..dac0dfcbb3 100644
--- a/udev_rules.h
+++ b/udev_rules.h
@@ -60,30 +60,34 @@ enum import_type {
};
struct udev_rule {
- struct key label;
- struct key goto_label;
- struct key kernel_name;
- struct key subsystem;
struct key action;
struct key devpath;
- struct key bus;
- struct key id;
+ struct key kernel;
+ struct key subsystem;
struct key driver;
+ struct key_pairs attr;
+
+ struct key kernels;
+ struct key subsystems;
+ struct key drivers;
+ struct key_pairs attrs;
+
+ struct key_pairs env;
struct key program;
struct key result;
struct key import;
enum import_type import_type;
+ struct key run;
struct key wait_for_sysfs;
- struct key_pairs sysfs;
- struct key_pairs env;
+ struct key label;
+ struct key goto_label;
struct key name;
struct key symlink;
- struct key run;
struct key owner;
struct key group;
- enum key_operation mode_operation;
mode_t mode;
+ enum key_operation mode_operation;
unsigned int partitions;
unsigned int last_rule:1,