summaryrefslogtreecommitdiff
path: root/libsysfs/sysfs/libsysfs.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-15 16:28:56 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:01 -0700
commit197178360f5c4253aeb743b32224125e58e2fd5d (patch)
treedf003d4a9dff23b2119fd7516f2dedc0ead1531c /libsysfs/sysfs/libsysfs.h
parentd4b611430083674ee1d3aa19b87c9894ac3e39d8 (diff)
[PATCH] libsysfs: version 2.0
Diffstat (limited to 'libsysfs/sysfs/libsysfs.h')
-rw-r--r--libsysfs/sysfs/libsysfs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libsysfs/sysfs/libsysfs.h b/libsysfs/sysfs/libsysfs.h
index 2f122405d7..12e7cc5f99 100644
--- a/libsysfs/sysfs/libsysfs.h
+++ b/libsysfs/sysfs/libsysfs.h
@@ -184,6 +184,21 @@ extern struct dlist *sysfs_get_classdev_attributes
(struct sysfs_class_device *clsdev);
extern struct sysfs_device *sysfs_get_classdev_device
(struct sysfs_class_device *clsdev);
+extern void sysfs_close_class(struct sysfs_class *cls);
+extern struct sysfs_class *sysfs_open_class(const char *name);
+extern struct sysfs_class_device *sysfs_get_class_device
+ (struct sysfs_class *cls, const char *name);
+extern struct dlist *sysfs_get_class_devices(struct sysfs_class *cls);
+
+/* generic sysfs bus access */
+extern void sysfs_close_bus(struct sysfs_bus *bus);
+extern struct sysfs_bus *sysfs_open_bus(const char *name);
+extern struct dlist *sysfs_get_bus_devices(struct sysfs_bus *bus);
+extern struct dlist *sysfs_get_bus_drivers(struct sysfs_bus *bus);
+extern struct sysfs_device *sysfs_get_bus_device
+ (struct sysfs_bus *bus, const char *id);
+extern struct sysfs_driver *sysfs_get_bus_driver
+ (struct sysfs_bus *bus, const char *drvname);
/**
* sort_list: sorter function to keep list elements sorted in alphabetical