summaryrefslogtreecommitdiff
path: root/usr/sysfs.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-08-14 14:32:08 -0500
committerMike Christie <michaelc@cs.wisc.edu>2011-08-14 22:12:57 -0500
commit2029bf16ca3e3378d9f0f7c747d95f2f3489327e (patch)
tree49092ffcf559c5bdc172749c569b374540d96327 /usr/sysfs.h
parentdeef9e20c2f1b107760b5b4c29289de77fcdc39f (diff)
downloadopen-iscsi-2029bf16ca3e3378d9f0f7c747d95f2f3489327e.tar.gz
iscsiadm: print kernel iface info
This patch prints the kernel's iface info. iscsiadm -m host -P 2 iscsiadm -m host -H $N -P 2 will print out the kernel's iface info for the ifaces under all hosts or for specific hosts. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Diffstat (limited to 'usr/sysfs.h')
-rw-r--r--usr/sysfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/sysfs.h b/usr/sysfs.h
index f5e13b3..304dbbf 100644
--- a/usr/sysfs.h
+++ b/usr/sysfs.h
@@ -59,6 +59,10 @@ extern int sysfs_get_str(char *id, char *subsys, char *param, char *value,
int value_size);
extern int sysfs_get_uint64(char *id, char *subsys, char *param,
uint64_t *value);
+extern int sysfs_get_uint8(char *id, char *subsys, char *param,
+ uint8_t *value);
+extern int sysfs_get_uint16(char *id, char *subsys, char *param,
+ uint16_t *value);
extern int sysfs_set_param(char *id, char *subsys, char *attr_name,
char *write_buf, ssize_t buf_size);