#include <linux/fs.h>
#include <linux/kobject.h>
#include <linux/string.h>
#include <linux/sysfs.h>
#include <linux/module.h>
#include <linux/init.h>
#include "protocol.h"
#include "orangefs-kernel.h"
#include "orangefs-sysfs.h"
#define ORANGEFS_KOBJ_ID …
#define ACACHE_KOBJ_ID …
#define CAPCACHE_KOBJ_ID …
#define CCACHE_KOBJ_ID …
#define NCACHE_KOBJ_ID …
#define PC_KOBJ_ID …
#define STATS_KOBJ_ID …
struct orangefs_attribute { … };
static ssize_t orangefs_attr_show(struct kobject *kobj,
struct attribute *attr,
char *buf)
{ … }
static ssize_t orangefs_attr_store(struct kobject *kobj,
struct attribute *attr,
const char *buf,
size_t len)
{ … }
static const struct sysfs_ops orangefs_sysfs_ops = …;
static ssize_t sysfs_int_show(struct kobject *kobj,
struct orangefs_attribute *attr, char *buf)
{ … }
static ssize_t sysfs_int_store(struct kobject *kobj,
struct orangefs_attribute *attr, const char *buf, size_t count)
{ … }
static ssize_t sysfs_service_op_show(struct kobject *kobj,
struct orangefs_attribute *attr, char *buf)
{ … }
static ssize_t sysfs_service_op_store(struct kobject *kobj,
struct orangefs_attribute *attr, const char *buf, size_t count)
{ … }
static struct orangefs_attribute op_timeout_secs_attribute = …;
static struct orangefs_attribute slot_timeout_secs_attribute = …;
static struct orangefs_attribute cache_timeout_msecs_attribute = …;
static struct orangefs_attribute dcache_timeout_msecs_attribute = …;
static struct orangefs_attribute getattr_timeout_msecs_attribute = …;
static struct orangefs_attribute readahead_count_attribute = …;
static struct orangefs_attribute readahead_size_attribute = …;
static struct orangefs_attribute readahead_count_size_attribute = …;
static struct orangefs_attribute readahead_readcnt_attribute = …;
static struct orangefs_attribute perf_counter_reset_attribute = …;
static struct orangefs_attribute perf_history_size_attribute = …;
static struct orangefs_attribute perf_time_interval_secs_attribute = …;
static struct attribute *orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *orangefs_obj;
static void orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type orangefs_ktype = …;
static struct orangefs_attribute acache_hard_limit_attribute = …;
static struct orangefs_attribute acache_reclaim_percent_attribute = …;
static struct orangefs_attribute acache_soft_limit_attribute = …;
static struct orangefs_attribute acache_timeout_msecs_attribute = …;
static struct attribute *acache_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *acache_orangefs_obj;
static void acache_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type acache_orangefs_ktype = …;
static struct orangefs_attribute capcache_hard_limit_attribute = …;
static struct orangefs_attribute capcache_reclaim_percent_attribute = …;
static struct orangefs_attribute capcache_soft_limit_attribute = …;
static struct orangefs_attribute capcache_timeout_secs_attribute = …;
static struct attribute *capcache_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *capcache_orangefs_obj;
static void capcache_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type capcache_orangefs_ktype = …;
static struct orangefs_attribute ccache_hard_limit_attribute = …;
static struct orangefs_attribute ccache_reclaim_percent_attribute = …;
static struct orangefs_attribute ccache_soft_limit_attribute = …;
static struct orangefs_attribute ccache_timeout_secs_attribute = …;
static struct attribute *ccache_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *ccache_orangefs_obj;
static void ccache_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type ccache_orangefs_ktype = …;
static struct orangefs_attribute ncache_hard_limit_attribute = …;
static struct orangefs_attribute ncache_reclaim_percent_attribute = …;
static struct orangefs_attribute ncache_soft_limit_attribute = …;
static struct orangefs_attribute ncache_timeout_msecs_attribute = …;
static struct attribute *ncache_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *ncache_orangefs_obj;
static void ncache_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type ncache_orangefs_ktype = …;
static struct orangefs_attribute pc_acache_attribute = …;
static struct orangefs_attribute pc_capcache_attribute = …;
static struct orangefs_attribute pc_ncache_attribute = …;
static struct attribute *pc_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *pc_orangefs_obj;
static void pc_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type pc_orangefs_ktype = …;
static struct orangefs_attribute stats_reads_attribute = …;
static struct orangefs_attribute stats_writes_attribute = …;
static struct attribute *stats_orangefs_default_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static struct kobject *stats_orangefs_obj;
static void stats_orangefs_obj_release(struct kobject *kobj)
{ … }
static struct kobj_type stats_orangefs_ktype = …;
int orangefs_sysfs_init(void)
{ … }
void orangefs_sysfs_exit(void)
{ … }