函数逻辑报告 |
Source Code:fs\io_uring.c |
Create Date:2022-07-29 10:55:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:io_req_set_file
函数原型:static int io_req_set_file(struct io_submit_state *state, struct io_kiocb *req, const struct io_uring_sqe *sqe)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果flags按位与ssue after inflight IO 则flags或等于drain existing IO first |
3408 | ret等于io_req_needs_file(req) |
3412 | 如果flags按位与use fixed fileset 则 |
3417 | file等于io_file_from_index(ctx, fd) |
3420 | flags或等于ctx owns file |
3421 | 否则 |
3422 | 如果needs_fixed_file则返回:负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 | 如果此条件成立可能性小(为编译器优化)(!file)则返回:负EBADF |
3430 | 返回:0 |
名称 | 描述 |
---|---|
io_submit_sqe |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |