summaryrefslogtreecommitdiffstats
path: root/include/sysfs.h
diff options
context:
space:
mode:
authorKarel Zak2012-10-23 11:32:55 +0200
committerKarel Zak2012-10-23 12:18:57 +0200
commit23a11c74a6bacf129e170060c85ff32a65b13610 (patch)
treefe6cccecdb19b0e6fe393488d854bff2ad0b97de /include/sysfs.h
parentinclude/sysfs: add SCSI host:channel:target:lun support (diff)
downloadkernel-qcow2-util-linux-23a11c74a6bacf129e170060c85ff32a65b13610.tar.gz
kernel-qcow2-util-linux-23a11c74a6bacf129e170060c85ff32a65b13610.tar.xz
kernel-qcow2-util-linux-23a11c74a6bacf129e170060c85ff32a65b13610.zip
lib/sysfs: add functions for SCSI host attributes
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r--include/sysfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h
index 10875d421..f0d33611e 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -75,5 +75,8 @@ extern int sysfs_devno_to_wholedisk(dev_t dev, char *diskname,
extern int sysfs_scsi_get_hctl(struct sysfs_cxt *cxt, int *h,
int *c, int *t, int *l);
+extern char *sysfs_scsi_host_strdup_attribute(struct sysfs_cxt *cxt,
+ const char *type, const char *attr);
+extern int sysfs_scsi_host_is(struct sysfs_cxt *cxt, const char *type);
#endif /* UTIL_LINUX_SYSFS_H */