Lines Matching refs:kobj
45 static ssize_t nilfs_##name##_attr_show(struct kobject *kobj, \
48 struct the_nilfs *nilfs = container_of(kobj->parent, \
56 static ssize_t nilfs_##name##_attr_store(struct kobject *kobj, \
60 struct the_nilfs *nilfs = container_of(kobj->parent, \
74 static void nilfs_##name##_attr_release(struct kobject *kobj) \
77 struct the_nilfs *nilfs = container_of(kobj->parent, \
93 struct kobject *kobj; \
98 kobj = &subgroups->sg_##name##_kobj; \
101 kobj->kset = nilfs_kset; \
103 err = kobject_init_and_add(kobj, &nilfs_##name##_ktype, parent, \
157 static ssize_t nilfs_snapshot_attr_show(struct kobject *kobj, in nilfs_snapshot_attr_show() argument
161 container_of(kobj, struct nilfs_root, snapshot_kobj); in nilfs_snapshot_attr_show()
168 static ssize_t nilfs_snapshot_attr_store(struct kobject *kobj, in nilfs_snapshot_attr_store() argument
173 container_of(kobj, struct nilfs_root, snapshot_kobj); in nilfs_snapshot_attr_store()
180 static void nilfs_snapshot_attr_release(struct kobject *kobj) in nilfs_snapshot_attr_release() argument
182 struct nilfs_root *root = container_of(kobj, struct nilfs_root, in nilfs_snapshot_attr_release()
952 static ssize_t nilfs_dev_attr_show(struct kobject *kobj, in nilfs_dev_attr_show() argument
955 struct the_nilfs *nilfs = container_of(kobj, struct the_nilfs, in nilfs_dev_attr_show()
963 static ssize_t nilfs_dev_attr_store(struct kobject *kobj, in nilfs_dev_attr_store() argument
967 struct the_nilfs *nilfs = container_of(kobj, struct the_nilfs, in nilfs_dev_attr_store()
975 static void nilfs_dev_attr_release(struct kobject *kobj) in nilfs_dev_attr_release() argument
977 struct the_nilfs *nilfs = container_of(kobj, struct the_nilfs, in nilfs_dev_attr_release()
1072 static ssize_t nilfs_feature_revision_show(struct kobject *kobj, in nilfs_feature_revision_show() argument
1084 static ssize_t nilfs_feature_README_show(struct kobject *kobj, in nilfs_feature_README_show() argument
1117 err = sysfs_create_group(&nilfs_kset->kobj, &nilfs_feature_attr_group); in nilfs_sysfs_init()
1135 sysfs_remove_group(&nilfs_kset->kobj, &nilfs_feature_attr_group); in nilfs_sysfs_exit()