summaryrefslogtreecommitdiffstats
path: root/include/sysfs.h
diff options
context:
space:
mode:
authorKarel Zak2012-10-23 12:12:07 +0200
committerKarel Zak2012-10-23 12:21:23 +0200
commita5dc4d2d9567aaa97a5c9ef2f6ce0b5a9124adb8 (patch)
tree63059eaeb2aaaa66c648c1aca0591c97c70d76ff /include/sysfs.h
parentlib/sysfs: add functions for SCSI host attributes (diff)
downloadkernel-qcow2-util-linux-a5dc4d2d9567aaa97a5c9ef2f6ce0b5a9124adb8.tar.gz
kernel-qcow2-util-linux-a5dc4d2d9567aaa97a5c9ef2f6ce0b5a9124adb8.tar.xz
kernel-qcow2-util-linux-a5dc4d2d9567aaa97a5c9ef2f6ce0b5a9124adb8.zip
lib/sysfs: add SCSI link functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r--include/sysfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h
index f0d33611e..4f9c46bb3 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -78,5 +78,7 @@ extern int sysfs_scsi_get_hctl(struct sysfs_cxt *cxt, int *h,
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);
+extern int sysfs_scsi_has_attribute(struct sysfs_cxt *cxt, const char *attr);
+extern int sysfs_scsi_path_contains(struct sysfs_cxt *cxt, const char *pattern);
#endif /* UTIL_LINUX_SYSFS_H */