函数逻辑报告 |
Source Code:fs\io_uring.c |
Create Date:2022-07-29 10:54:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:io_read
函数原型:static int io_read(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct io_kiocb * | req | |
struct io_kiocb ** | nxt | |
bool | force_nonblock |
1828 | iovec等于inline_vecs |
1834 | ret等于io_import_iovec(generic data direction definitions , req, & iovec, & iter) |
1839 | 如果非force_nonblock则ki_flags与等于IOCB_NOWAIT的反 |
1842 | result等于0 |
1844 | 如果flags按位与linked sqes 则result等于io_size |
1853 | 转到:copy_iov |
1856 | iov_count等于iov_iter_count( & iter) |
1857 | ret等于rw_verify_area(generic data direction definitions , file, & 文件偏移, iov_count) |
1858 | 如果非ret则 |
1863 | 否则ret2等于For files that don't have ->read_iter() and ->write_iter(), handle them* by looping over ->read() or ->write() manually. |
1867 | 如果非force_nonblock或ret2不等于负EAGAIN则 |
1868 | kiocb_done(kiocb, ret2, nxt, in_async) |
1869 | 否则 |
1878 | out_free : |
1879 | 释放内存 |
1880 | 返回:ret |
名称 | 描述 |
---|---|
io_issue_sqe |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |