Skip to content

Commit

Permalink
orangefs: describe organization of sysfs
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
  • Loading branch information
Martin Brandenburg committed Aug 15, 2016
1 parent 4a34366 commit c27889c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/orangefs/orangefs-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c27889c

Please sign in to comment.