D | file.c | 42 struct kernfs_open_file *of = sf->private; in sysfs_kf_seq_show() local 43 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show() 44 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show() 61 count = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_seq_show() 80 static ssize_t sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf, in sysfs_kf_bin_read() argument 83 struct bin_attribute *battr = of->kn->priv; in sysfs_kf_bin_read() 84 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read() 85 loff_t size = file_inode(of->file)->i_size; in sysfs_kf_bin_read() 100 return battr->read(of->file, kobj, battr, buf, pos, count); in sysfs_kf_bin_read() 104 static ssize_t sysfs_kf_read(struct kernfs_open_file *of, char *buf, in sysfs_kf_read() argument [all …]
|