• 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()
188 const struct kernfs_ops *ops; in kernfs_file_read_iter() local
211 ops = kernfs_ops(of->kn); in kernfs_file_read_iter()
212 if (ops->read) in kernfs_file_read_iter()
213 len = ops->read(of, buf, len, iocb->ki_pos); in kernfs_file_read_iter()
259 const struct kernfs_ops *ops; in kernfs_fop_write_iter() local
294 ops = kernfs_ops(of->kn); in kernfs_fop_write_iter()
295 if (ops->write) in kernfs_fop_write_iter()
296 len = ops->write(of, buf, len, iocb->ki_pos); in kernfs_fop_write_iter()
453 const struct kernfs_ops *ops; in kernfs_fop_mmap() local
472 ops = kernfs_ops(of->kn); in kernfs_fop_mmap()
473 rc = ops->mmap(of, vma); in kernfs_fop_mmap()
601 const struct kernfs_ops *ops; in kernfs_fop_open() local
609 ops = kernfs_ops(kn); in kernfs_fop_open()
611 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open()
612 has_write = ops->write || ops->mmap; in kernfs_fop_open()
613 has_mmap = ops->mmap; in kernfs_fop_open()
659 of->atomic_write_len = ops->atomic_write_len; in kernfs_fop_open()
667 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
669 if (ops->prealloc) { in kernfs_fop_open()
683 if (ops->seq_show) in kernfs_fop_open()
702 if (ops->open) { in kernfs_fop_open()
704 error = ops->open(of); in kernfs_fop_open()
744 kn->attr.ops->release(of); in kernfs_release_file()
837 if (kn->attr.ops->poll) in kernfs_fop_poll()
838 ret = kn->attr.ops->poll(of, wait); in kernfs_fop_poll()
975 const struct kernfs_ops *ops, in __kernfs_create_file() argument
990 kn->attr.ops = ops; in __kernfs_create_file()
1007 if (ops->seq_show) in __kernfs_create_file()
1009 if (ops->mmap) in __kernfs_create_file()
1011 if (ops->release) in __kernfs_create_file()