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);
272 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops;
278 if (WARN(!sysfs_ops, KERN_ERR
284 if (sysfs_ops->show && sysfs_ops->store)
286 else if (sysfs_ops->show)
288 else if (sysfs_ops->store)
291 if (sysfs_ops->show && sysfs_ops->store)
293 else if (sysfs_ops->show)
295 else if (sysfs_ops->store)