opdef.h (329061d3e2f9a0082a097e9558bd5497098586c6) opdef.h (d9b57aa3cfc792ccac6858376c017dbea6cb2872)
1// SPDX-License-Identifier: GPL-2.0
2#ifndef IOU_OP_DEF_H
3#define IOU_OP_DEF_H
4
5struct io_op_def {
6 /* needs req->file assigned */
7 unsigned needs_file : 1;
8 /* should block plug */

--- 23 unchanged lines hidden (view full) ---

32
33 int (*prep)(struct io_kiocb *, const struct io_uring_sqe *);
34 int (*issue)(struct io_kiocb *, unsigned int);
35 int (*prep_async)(struct io_kiocb *);
36 void (*cleanup)(struct io_kiocb *);
37};
38
39extern const struct io_op_def io_op_defs[];
1// SPDX-License-Identifier: GPL-2.0
2#ifndef IOU_OP_DEF_H
3#define IOU_OP_DEF_H
4
5struct io_op_def {
6 /* needs req->file assigned */
7 unsigned needs_file : 1;
8 /* should block plug */

--- 23 unchanged lines hidden (view full) ---

32
33 int (*prep)(struct io_kiocb *, const struct io_uring_sqe *);
34 int (*issue)(struct io_kiocb *, unsigned int);
35 int (*prep_async)(struct io_kiocb *);
36 void (*cleanup)(struct io_kiocb *);
37};
38
39extern const struct io_op_def io_op_defs[];
40
41void io_uring_optable_init(void);
40#endif
42#endif