summaryrefslogtreecommitdiff
path: root/udev_rules.h
diff options
context:
space:
mode:
authorGreg KH <greg@press.(none)>2005-06-21 16:36:29 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 16:36:29 -0700
commit972d318a3123b00d0ed6b78bbcf70a0965841a8e (patch)
tree8322245ad8e488ad3da9575e2d90b219a99880ea /udev_rules.h
parentae8d5e161fe916e39f226ce53f2c5f8b31f582a0 (diff)
parentd27d3bb05288fb5e70bc3f3fc7da1dc8ee5413a8 (diff)
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
Diffstat (limited to 'udev_rules.h')
-rw-r--r--udev_rules.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/udev_rules.h b/udev_rules.h
index 5fba2d5571..2bf8107543 100644
--- a/udev_rules.h
+++ b/udev_rules.h
@@ -31,6 +31,7 @@
#define KEY_KERNEL "KERNEL"
#define KEY_SUBSYSTEM "SUBSYSTEM"
#define KEY_ACTION "ACTION"
+#define KEY_DEVPATH "DEVPATH"
#define KEY_BUS "BUS"
#define KEY_ID "ID"
#define KEY_PROGRAM "PROGRAM"
@@ -38,6 +39,7 @@
#define KEY_DRIVER "DRIVER"
#define KEY_SYSFS "SYSFS"
#define KEY_ENV "ENV"
+#define KEY_MODALIAS "MODALIAS"
#define KEY_NAME "NAME"
#define KEY_SYMLINK "SYMLINK"
#define KEY_OWNER "OWNER"
@@ -62,6 +64,7 @@ enum key_operation {
KEY_OP_NOMATCH,
KEY_OP_ADD,
KEY_OP_ASSIGN,
+ KEY_OP_ASSIGN_FINAL,
};
struct key_pair {
@@ -79,6 +82,8 @@ struct udev_rule {
enum key_operation subsystem_operation;
char action[NAME_SIZE];
enum key_operation action_operation;
+ char devpath[PATH_SIZE];
+ enum key_operation devpath_operation;
char bus[NAME_SIZE];
enum key_operation bus_operation;
char id[NAME_SIZE];
@@ -93,13 +98,21 @@ struct udev_rule {
int sysfs_pair_count;
struct key_pair env_pair[KEY_ENV_PAIRS_MAX];
int env_pair_count;
+ enum key_operation modalias_operation;
+ char modalias[PATH_SIZE];
char name[PATH_SIZE];
+ enum key_operation name_operation;
char symlink[PATH_SIZE];
+ enum key_operation symlink_operation;
char owner[USER_SIZE];
+ enum key_operation owner_operation;
char group[USER_SIZE];
+ enum key_operation group_operation;
mode_t mode;
+ enum key_operation mode_operation;
char run[PATH_SIZE];
+ enum key_operation run_operation;
int last_rule;
int ignore_device;
@@ -114,7 +127,7 @@ extern struct list_head udev_rule_list;
extern int udev_rules_init(void);
extern int udev_rules_get_name(struct udevice *udev, struct sysfs_class_device *class_dev);
-extern int udev_rules_get_run(struct udevice *udev);
+extern int udev_rules_get_run(struct udevice *udev, struct sysfs_device *sysfs_device);
extern void udev_rules_close(void);
#endif