summaryrefslogtreecommitdiff
path: root/namedev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-12 06:52:55 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:25:38 -0700
commit6818c51d7abeab9914eb7193968b1efa9459a853 (patch)
treef05af9087f42f67bff00f71778cf3f9dc80323b1 /namedev.h
parent02fa9ae58920b431bc37182716dd863f1c482651 (diff)
[PATCH] support SUBSYSTEM as a rule key
This should make it easier to catch e.g all block or net devices with a single rule.
Diffstat (limited to 'namedev.h')
-rw-r--r--namedev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/namedev.h b/namedev.h
index f1e0082241..3837e864a0 100644
--- a/namedev.h
+++ b/namedev.h
@@ -42,6 +42,7 @@ struct sysfs_class_device;
#define FIELD_PROGRAM "PROGRAM"
#define FIELD_RESULT "RESULT"
#define FIELD_KERNEL "KERNEL"
+#define FIELD_SUBSYSTEM "SUBSYSTEM"
#define FIELD_NAME "NAME"
#define FIELD_SYMLINK "SYMLINK"
#define FIELD_OWNER "OWNER"
@@ -78,6 +79,7 @@ struct config_device {
char kernel[NAME_SIZE];
char program[PROGRAM_SIZE];
char result[PROGRAM_SIZE];
+ char subsystem[SUBSYSTEM_SIZE];
char name[NAME_SIZE];
char symlink[NAME_SIZE];
struct sysfs_pair sysfs_pair[MAX_SYSFS_PAIRS];