• Home
  • Raw
  • Download

Lines Matching refs:ops

68 	return kn->attr.ops;  in kernfs_ops()
96 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_stop_active() local
98 if (ops->seq_stop) in kernfs_seq_stop_active()
99 ops->seq_stop(sf, v); in kernfs_seq_stop_active()
106 const struct kernfs_ops *ops; in kernfs_seq_start() local
116 ops = kernfs_ops(of->kn); in kernfs_seq_start()
117 if (ops->seq_start) { in kernfs_seq_start()
118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
135 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_next() local
137 if (ops->seq_next) { in kernfs_seq_next()
138 void *next = ops->seq_next(sf, v, ppos); in kernfs_seq_next()
168 return of->kn->attr.ops->seq_show(sf, v); in kernfs_seq_show()
189 const struct kernfs_ops *ops; in kernfs_file_direct_read() local
212 ops = kernfs_ops(of->kn); in kernfs_file_direct_read()
213 if (ops->read) in kernfs_file_direct_read()
214 len = ops->read(of, buf, len, *ppos); in kernfs_file_direct_read()
277 const struct kernfs_ops *ops; in kernfs_fop_write() local
314 ops = kernfs_ops(of->kn); in kernfs_fop_write()
315 if (ops->write) in kernfs_fop_write()
316 len = ops->write(of, buf, len, *ppos); in kernfs_fop_write()
474 const struct kernfs_ops *ops; in kernfs_fop_mmap() local
493 ops = kernfs_ops(of->kn); in kernfs_fop_mmap()
494 rc = ops->mmap(of, vma); in kernfs_fop_mmap()
622 const struct kernfs_ops *ops; in kernfs_fop_open() local
630 ops = kernfs_ops(kn); in kernfs_fop_open()
632 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open()
633 has_write = ops->write || ops->mmap; in kernfs_fop_open()
634 has_mmap = ops->mmap; in kernfs_fop_open()
680 of->atomic_write_len = ops->atomic_write_len; in kernfs_fop_open()
688 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
690 if (ops->prealloc) { in kernfs_fop_open()
704 if (ops->seq_show) in kernfs_fop_open()
933 const struct kernfs_ops *ops, in __kernfs_create_file() argument
947 kn->attr.ops = ops; in __kernfs_create_file()
964 if (ops->seq_show) in __kernfs_create_file()
966 if (ops->mmap) in __kernfs_create_file()