chiark / gitweb /
optimize sysfs device and attribute cache
[elogind.git] / udev.h
diff --git a/udev.h b/udev.h
index 0c7ca12..2652d46 100644 (file)
--- a/udev.h
+++ b/udev.h
@@ -54,6 +54,7 @@ struct udev_rules;
 
 struct sysfs_device {
        struct list_head node;                  /* for device cache */
+       struct sysfs_device *parent;            /* already cached parent*/
        char devpath[PATH_SIZE];
        char subsystem[NAME_SIZE];              /* $class/$bus/"drivers" */
        char kernel_name[NAME_SIZE];            /* device instance name */