Searched refs:battr (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/fs/sysfs/
H A Dfile.c85 struct bin_attribute *battr = of->kn->priv; sysfs_kf_bin_read() local
99 if (!battr->read) sysfs_kf_bin_read()
102 return battr->read(of->file, kobj, battr, buf, pos, count); sysfs_kf_bin_read()
138 struct bin_attribute *battr = of->kn->priv; sysfs_kf_bin_write() local
150 if (!battr->write) sysfs_kf_bin_write()
153 return battr->write(of->file, kobj, battr, buf, pos, count); sysfs_kf_bin_write()
159 struct bin_attribute *battr = of->kn->priv; sysfs_kf_bin_mmap() local
162 return battr->mmap(of->file, kobj, battr, vma); sysfs_kf_bin_mmap()
277 struct bin_attribute *battr = (void *)attr; sysfs_add_file_mode_ns() local
279 if (battr->mmap) sysfs_add_file_mode_ns()
281 else if (battr->read && battr->write) sysfs_add_file_mode_ns()
283 else if (battr->read) sysfs_add_file_mode_ns()
285 else if (battr->write) sysfs_add_file_mode_ns()
290 size = battr->size; sysfs_add_file_mode_ns()

Completed in 100 milliseconds