Lines Matching defs:sysfs_ops
23 * Determine ktype->sysfs_ops for the given kernfs_node. This function
26 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn)
32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL;
38 * sysfs_ops->show() result through seq_file.
44 const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
107 const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
133 const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
257 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops;
260 if (WARN(!sysfs_ops, KERN_ERR
265 if (sysfs_ops->show && sysfs_ops->store) {
270 } else if (sysfs_ops->show) {
275 } else if (sysfs_ops->store) {