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);
104 const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
130 const struct sysfs_ops *ops = sysfs_file_ops(of->kn);
259 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops;
265 if (WARN(!sysfs_ops, KERN_ERR
271 if (sysfs_ops->show && sysfs_ops->store)
273 else if (sysfs_ops->show)
275 else if (sysfs_ops->store)
278 if (sysfs_ops->show && sysfs_ops->store)
280 else if (sysfs_ops->show)
282 else if (sysfs_ops->store)