From: Martin Brandenburg Date: Mon, 15 Aug 2016 19:11:32 +0000 (-0400) Subject: orangefs: describe organization of sysfs X-Git-Tag: v4.9-rc1~107^2~1^2^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c27889cdb4eed68c00f0855efa149dc03e67f7ee;p=karo-tx-linux.git orangefs: describe organization of sysfs Signed-off-by: Martin Brandenburg --- 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,