summaryrefslogtreecommitdiff
path: root/udevdb.h
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-17 23:32:17 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:41 -0700
commitca9998602336f67eb2590819eecf416977885e2a (patch)
tree0c6f246d091f8a74922b7c1d7bdede4ca5566d1e /udevdb.h
parent1c596cc0a5357105a80ab07f0ebbe2eb330b2c28 (diff)
[PATCH] got "remove of named devices" working.
database code still needs some major cleanup.
Diffstat (limited to 'udevdb.h')
-rw-r--r--udevdb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/udevdb.h b/udevdb.h
index 089af2972b..8e72eded02 100644
--- a/udevdb.h
+++ b/udevdb.h
@@ -16,7 +16,7 @@
struct udevice {
char name[NAME_SIZE];
- char sysfs_path[PATH_SIZE];
+ char sysfs_dev_path[PATH_SIZE];
char class_dev_name[NAME_SIZE];
char class_name[NAME_SIZE];
char bus_id[NAME_SIZE];
@@ -32,11 +32,12 @@ struct udevice {
extern void udevdb_exit(void);
extern int udevdb_init(int init_flag);
extern int udevdb_delete_udevice(const char *name);
-extern int udevdb_add_udevice(const struct udevice *dev);
+extern int udevdb_add_device(const char *device, const struct sysfs_class_device *class_dev, const char *name, char type, int major, int minor, int mode);
extern struct udevice *udevdb_get_udevice(const char *name);
extern struct udevice *udevdb_get_udevice_by_bus(const char *bus,
const char *id);
extern struct udevice *udevdb_get_udevice_by_class(const char *cls,
const char *cls_dev);
+extern char *udevdb_get_udevice_by_sysfs(const char *path);
#endif /* _UDEVDB_H_ */