Explorar o código

orangefs: describe organization of sysfs

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Martin Brandenburg %!s(int64=9) %!d(string=hai) anos
pai
achega
c27889cdb4
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      fs/orangefs/orangefs-sysfs.c

+ 7 - 0
fs/orangefs/orangefs-sysfs.c

@@ -139,6 +139,13 @@
 #define PC_KOBJ_ID "pc"
 #define PC_KOBJ_ID "pc"
 #define STATS_KOBJ_ID "stats"
 #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 orangefs_attribute {
 	struct attribute attr;
 	struct attribute attr;
 	ssize_t (*show)(struct kobject *kobj,
 	ssize_t (*show)(struct kobject *kobj,