]>
Commit | Line | Data |
---|---|---|
f0713480 KS |
1 | /* |
2 | * udev_sysfs.h | |
3 | * | |
4 | * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org> | |
5 | * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com> | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation version 2 of the License. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License along | |
17 | * with this program; if not, write to the Free Software Foundation, Inc., | |
18 | * 675 Mass Ave, Cambridge, MA 02139, USA. | |
19 | * | |
20 | */ | |
21 | ||
22 | #ifndef _UDEV_SYSFS_H_ | |
23 | #define _UDEV_SYSFS_H_ | |
24 | ||
25 | #include "libsysfs/sysfs/libsysfs.h" | |
26 | ||
c9b8dbfb | 27 | #define WAIT_MAX_SECONDS 3 |
f0713480 KS |
28 | #define WAIT_LOOP_PER_SECOND 20 |
29 | ||
7e720bd4 | 30 | extern dev_t get_devt(struct sysfs_class_device *class_dev); |
f0713480 | 31 | extern int subsystem_expect_no_dev(const char *subsystem); |
d402af7d KS |
32 | |
33 | /* /sys/class /sys/block devices */ | |
34 | extern struct sysfs_class_device *wait_class_device_open(const char *path); | |
f0713480 | 35 | extern int wait_for_class_device(struct sysfs_class_device *class_dev, const char **error); |
d402af7d KS |
36 | |
37 | /* /sys/devices devices */ | |
38 | extern struct sysfs_device *wait_devices_device_open(const char *path); | |
39 | extern int wait_for_devices_device(struct sysfs_device *devices_dev, const char **error); | |
f0713480 KS |
40 | |
41 | #endif /* _UDEV_SYSFS_H_ */ |