]> git.ipfire.org Git - thirdparty/systemd.git/blame - udev_sysfs.h
[PATCH] add test for format chars in multiple symlinks to replace
[thirdparty/systemd.git] / udev_sysfs.h
CommitLineData
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
27#define WAIT_MAX_SECONDS 5
28#define WAIT_LOOP_PER_SECOND 20
29
30extern int subsystem_expect_no_dev(const char *subsystem);
31extern int wait_for_bus_device(struct sysfs_device *devices_dev, const char **error);
32extern int wait_for_class_device(struct sysfs_class_device *class_dev, const char **error);
33extern struct sysfs_class_device *open_class_device_wait(const char *path);
34extern struct sysfs_device *open_devices_device_wait(const char *path);
35
36#endif /* _UDEV_SYSFS_H_ */