Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:io_req_set_file
Proto:static int io_req_set_file(struct io_submit_state *state, struct io_kiocb *req, const struct io_uring_sqe *sqe)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct io_submit_state * | state | |
struct io_kiocb * | req | |
const struct io_uring_sqe * | sqe |
3402 | flags = READ_ONCE(IOSQE_ flags ) |
3403 | fd = READ_ONCE(le descriptor to do IO on ) |
3405 | If flags & ssue after inflight IO Then flags |= drain existing IO first |
3408 | ret = io_req_needs_file(req) |
3412 | If flags & use fixed fileset Then |
3417 | file = io_file_from_index(ctx, fd) |
3420 | flags |= ctx owns file |
3421 | Else |
3422 | If needs_fixed_file Then Return -EBADF |
3425 | file = Get as many references to a file as we have IOs left in this submission,* assuming most submissions are for one file, or at least that each file* has more than one submission. |
3426 | If Value for the false possibility is greater at compile time(!file) Then Return -EBADF |
3430 | Return 0 |
Name | Describe |
---|---|
io_submit_sqe |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |