summaryrefslogtreecommitdiff
path: root/udev_sysfs.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-13 12:36:47 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:27:34 -0700
commitd402af7d71be3b89eac5877a425f2c6bce5c4f3d (patch)
tree6a58878421d250fd1c2d45409f35b20d57320a36 /udev_sysfs.h
parent2092fbcdebf5313f29b43bdaa57a22baf0c0269f (diff)
[PATCH] don't wait for sysfs if the kernel(2.6.10-rc2) tells us what not to expect
Newer kernels will tell us if we should wait for the "device" or the "bus" link. So don't waste the time with our lists or wait for the timeout.
Diffstat (limited to 'udev_sysfs.h')
-rw-r--r--udev_sysfs.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/udev_sysfs.h b/udev_sysfs.h
index 922db1be79..98ff53e11a 100644
--- a/udev_sysfs.h
+++ b/udev_sysfs.h
@@ -28,9 +28,13 @@
#define WAIT_LOOP_PER_SECOND 20
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_ */