函数逻辑报告 |
Source Code:fs\splice.c |
Create Date:2022-07-29 10:42:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:r_file_splice_write - splice data from a pipe to a file*@pipe: pipe info*@out: file to write to*@ppos: position in @out*@len: number of bytes to splice*@flags: splice modifier flags* Description:* Will either move or copy pages (determined by @flags
函数原型:ssize_t iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct pipe_inode_info * | pipe | |
| struct file * | out | |
| loff_t * | ppos | |
| size_t | len | |
| unsigned int | flags |
| 695 | struct splice_desc sd = {maining length = len, splice flags = flags, le position = * ppos, le to read/write = out, } |
| 706 | 如果此条件成立可能性小(为编译器优化)(!array)则返回:负ENOMEM |
| 712 | 当maining length 循环 |
| 722 | 如果此条件成立可能性小(为编译器优化)(nbufs < max_usage)则 |
| 738 | left等于maining length |
| 746 | ret等于pipe_buf_confirm - verify contents of the pipe buffer*@pipe: the pipe that the buffer belongs to*@buf: the buffer to confirm |
| 747 | 如果此条件成立可能性小(为编译器优化)(ret)则 |
| 759 | iov_iter_bvec( & from, WRITE, array, n, maining length - left) |
| 760 | ret等于vfs_iter_write(out, & from, & le position , 0) |
| 765 | maining length 减等于ret |
| 766 | ppos等于le position |
| 780 | 否则 |
| 787 | done : |
| 788 | 释放内存 |
| 791 | pipe_unlock(pipe) |
| 796 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |