summaryrefslogtreecommitdiff
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-15 15:11:32 -0400
committerMartin Brandenburg <martin@omnibond.com>2016-08-15 15:11:32 -0400
commitc27889cdb4eed68c00f0855efa149dc03e67f7ee (patch)
treeed4f69c5e194a22d7cb91e4d37ab5344afac0f03 /fs/orangefs
parent4a3436647ac5161a8a8e797f89c2f8f52b947d59 (diff)
orangefs: describe organization of sysfs
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/orangefs-sysfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-sysfs.c b/fs/orangefs/orangefs-sysfs.c
index a772d26ad9d9..dac2908c0c27 100644
--- a/fs/orangefs/orangefs-sysfs.c
+++ b/fs/orangefs/orangefs-sysfs.c
@@ -139,6 +139,13 @@
#define PC_KOBJ_ID "pc"
#define STATS_KOBJ_ID "stats"
+/*
+ * Every item calls orangefs_attr_show and orangefs_attr_store through
+ * orangefs_sysfs_ops. They look at the orangefs_attributes further below to
+ * call one of sysfs_int_show, sysfs_int_store, sysfs_service_op_show, or
+ * sysfs_service_op_store.
+ */
+
struct orangefs_attribute {
struct attribute attr;
ssize_t (*show)(struct kobject *kobj,