+#define FIELD_KERNEL "KERNEL"
+#define FIELD_SUBSYSTEM "SUBSYSTEM"
+#define FIELD_BUS "BUS"
+#define FIELD_SYSFS "SYSFS"
+#define FIELD_ID "ID"
+#define FIELD_PLACE "PLACE"
+#define FIELD_PROGRAM "PROGRAM"
+#define FIELD_RESULT "RESULT"
+#define FIELD_DRIVER "DRIVER"
+#define FIELD_NAME "NAME"
+#define FIELD_SYMLINK "SYMLINK"
+#define FIELD_OWNER "OWNER"
+#define FIELD_GROUP "GROUP"
+#define FIELD_MODE "MODE"
+#define FIELD_OPTIONS "OPTIONS"
+
+#define OPTION_IGNORE_DEVICE "ignore_device"
+#define OPTION_IGNORE_REMOVE "ignore_remove"
+#define OPTION_PARTITIONS "all_partitions"
+
+#define MAX_SYSFS_PAIRS 5
+
+#define RULEFILE_SUFFIX ".rules"
+
+struct sysfs_pair {
+ char file[PATH_SIZE];
+ char value[VALUE_SIZE];