函数逻辑报告 |
Source Code:fs\splice.c |
Create Date:2022-07-29 10:42:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:iter_to_pipe
函数原型:static int iter_to_pipe(struct iov_iter *from, struct pipe_inode_info *pipe, unsigned flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct iov_iter * | from | |
struct pipe_inode_info * | pipe | |
unsigned | flags |
1225 | struct pipe_buffer buf = {ops = & user_page_pipe_buf_ops, flags = flags} |
1229 | total等于0 |
1230 | ret等于0 |
1231 | bool failed = false |
1233 | 当iov_iter_count(from)且非failed循环 |
1239 | copied等于iov_iter_get_pages(from, pages, ~0UL, 16, & start) |
1240 | 如果copied小于等于0则 |
1246 | size等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, copied, PAGE_SIZE - start) |
1247 | 如果非failed则 |
1251 | ret等于add_to_pipe(pipe, & buf) |
1252 | 如果此条件成立可能性小(为编译器优化)(ret < 0)则 |
1253 | failed = true |
1254 | 否则 |
1255 | iov_iter_advance(from, ret) |
1258 | 否则 |
名称 | 描述 |
---|---|
vmsplice_to_pipe | vmsplice splices a user address range into a pipe. It can be thought of* as splice-from-memory, where the regular splice is splice-from-file (or* to file). In both cases the output is a pipe, naturally. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |