11 #include <linux/kobject.h>
12 #include <uapi/linux/stat.h>
14 #include <linux/kernel.h>
15 #include <linux/rwsem.h>
16 #include <linux/uaccess.h>
18 #include <linux/cred.h>
24 #define ATTR_BUFF_SIZE 64
28 static ssize_t max_msg_size_show(
struct kobject *kobj,
struct kobj_attribute *attr,
char *buf);
29 static ssize_t max_msg_size_store(
struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf,
size_t count);
30 static ssize_t max_storage_size_show(
struct kobject *kobj,
struct kobj_attribute *attr,
char *buf);
31 static ssize_t max_storage_size_store(
struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf,
size_t count);
32 static ssize_t current_storage_size_show(
struct kobject *kobj,
struct kobj_attribute *attr,
char *buf);
33 static ssize_t garbage_collector_ratio_show(
struct kobject *kobj,
struct kobj_attribute *attr,
char *user_buff);
34 static ssize_t garbage_collector_ratio_store(
struct kobject *kobj,
struct kobj_attribute *attr,
const char *user_buf,
size_t count);