Searched refs:attr_sd (Results 1 – 3 of 3) sorted by relevance
51 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata; in fill_read() local52 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr; in fill_read()53 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in fill_read()57 if (!sysfs_get_active(attr_sd)) in fill_read()64 sysfs_put_active(attr_sd); in fill_read()121 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata; in flush_write() local122 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr; in flush_write()123 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in flush_write()127 if (!sysfs_get_active(attr_sd)) in flush_write()134 sysfs_put_active(attr_sd); in flush_write()[all …]
69 struct sysfs_dirent *attr_sd = dentry->d_fsdata; in fill_read_buffer() local70 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in fill_read_buffer()81 if (!sysfs_get_active(attr_sd)) in fill_read_buffer()84 buffer->event = atomic_read(&attr_sd->s_attr.open->event); in fill_read_buffer()85 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page); in fill_read_buffer()87 sysfs_put_active(attr_sd); in fill_read_buffer()193 struct sysfs_dirent *attr_sd = dentry->d_fsdata; in flush_write_buffer() local194 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj; in flush_write_buffer()199 if (!sysfs_get_active(attr_sd)) in flush_write_buffer()202 rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count); in flush_write_buffer()[all …]
236 void unmap_bin_file(struct sysfs_dirent *attr_sd);