X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev_sysfs.h;h=8078f62d8298c20a6339c63cc97381c3dbd2568b;hp=922db1be791d2b6ba720bd4a76ebe057d9ecba1a;hb=2d8af104e0262554be2bf2cbbaa752bee6f1a65a;hpb=f071348004c8069b610effd95309ff47c515cf3e;ds=sidebyside diff --git a/udev_sysfs.h b/udev_sysfs.h index 922db1be7..8078f62d8 100644 --- a/udev_sysfs.h +++ b/udev_sysfs.h @@ -24,13 +24,18 @@ #include "libsysfs/sysfs/libsysfs.h" -#define WAIT_MAX_SECONDS 5 +#define WAIT_MAX_SECONDS 3 #define WAIT_LOOP_PER_SECOND 20 +extern dev_t get_devt(struct sysfs_class_device *class_dev); extern int subsystem_expect_no_dev(const char *subsystem); -extern int wait_for_bus_device(struct sysfs_device *devices_dev, const char **error); + +/* /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); -extern struct sysfs_class_device *open_class_device_wait(const char *path); -extern struct sysfs_device *open_devices_device_wait(const char *path); + +/* /sys/devices devices */ +extern struct sysfs_device *wait_devices_device_open(const char *path); +extern int wait_for_devices_device(struct sysfs_device *devices_dev, const char **error); #endif /* _UDEV_SYSFS_H_ */