summaryrefslogtreecommitdiffstats
path: root/include/sysfs.h
diff options
context:
space:
mode:
authorKarel Zak2014-12-02 10:59:48 +0100
committerKarel Zak2014-12-02 10:59:48 +0100
commite017ef8bb921d8faa681dfefc58209c6d8b38de5 (patch)
treea75e143be4adbc33dbafaebedce910e7cf390751 /include/sysfs.h
parentdocs: update TODO file (diff)
downloadkernel-qcow2-util-linux-e017ef8bb921d8faa681dfefc58209c6d8b38de5.tar.gz
kernel-qcow2-util-linux-e017ef8bb921d8faa681dfefc58209c6d8b38de5.tar.xz
kernel-qcow2-util-linux-e017ef8bb921d8faa681dfefc58209c6d8b38de5.zip
lib/sysfs: add subsystem and hotplug detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r--include/sysfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h
index 3ff20cb27..1de624aad 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -70,6 +70,10 @@ extern int sysfs_count_partitions(struct sysfs_cxt *cxt, const char *devname);
extern dev_t sysfs_partno_to_devno(struct sysfs_cxt *cxt, int partno);
extern char *sysfs_get_slave(struct sysfs_cxt *cxt);
+extern char *sysfs_get_devchain(struct sysfs_cxt *cxt, char *buf, size_t bufsz);
+extern int sysfs_next_subsystem(struct sysfs_cxt *cxt, char *devchain, char **subsys);
+extern int sysfs_is_hotpluggable(struct sysfs_cxt *cxt);
+
extern int sysfs_is_partition_dirent(DIR *dir, struct dirent *d,
const char *parent_name);