Lines Matching refs:kobj
55 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\
59 ssize_t ret = fn ## _to_text(&out, kobj, attr); \
75 static ssize_t fn ## _to_text(struct printbuf *out, struct kobject *kobj,\
82 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\
85 return bch2_err_class(fn##_store_inner(kobj, attr, buf, size)); \
88 static ssize_t fn ## _store_inner(struct kobject *kobj, struct attribute *attr,\
351 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj);
437 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj);
544 struct bch_fs *c = container_of(kobj, struct bch_fs, counters_kobj);
584 struct bch_fs *c = container_of(kobj, struct bch_fs, internal);
586 return bch2_fs_to_text(out, &c->kobj, attr);
591 struct bch_fs *c = container_of(kobj, struct bch_fs, internal);
593 return bch2_fs_store(&c->kobj, attr, buf, size);
643 struct bch_fs *c = container_of(kobj, struct bch_fs, opts_dir);
656 struct bch_fs *c = container_of(kobj, struct bch_fs, opts_dir);
703 int bch2_opts_create_sysfs_files(struct kobject *kobj)
714 ret = sysfs_create_file(kobj, &i->attr);
726 struct bch_fs *c = container_of(kobj, struct bch_fs, time_stats);
773 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj);
827 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj);