X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev_sysfs.h;h=5b87d6bf959b028afb8f96e1eab0c2ea35018797;hp=98ff53e11a57893b0618496d5c4e532eec48c5d5;hb=ff3e4bed21aaff673284f2e024da26c1e39cfda6;hpb=d402af7d71be3b89eac5877a425f2c6bce5c4f3d diff --git a/udev_sysfs.h b/udev_sysfs.h index 98ff53e11..5b87d6bf9 100644 --- a/udev_sysfs.h +++ b/udev_sysfs.h @@ -24,12 +24,12 @@ #include "libsysfs/sysfs/libsysfs.h" -#define WAIT_MAX_SECONDS 5 +#define WAIT_MAX_SECONDS 3 #define WAIT_LOOP_PER_SECOND 20 -extern int subsystem_expect_no_dev(const char *subsystem); +extern dev_t get_devt(struct sysfs_class_device *class_dev); -/* /sys/class /sys/block devices */ +/* /sys/class, /sys/block devices */ extern struct sysfs_class_device *wait_class_device_open(const char *path); extern int wait_for_class_device(struct sysfs_class_device *class_dev, const char **error);