函数逻辑报告 |
Source Code:fs\splice.c |
Create Date:2022-07-29 10:42:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:For lack of a better implementation, implement vmsplice() to userspace* as a simple copy of the pipes pages to the user iov.
函数原型:static long vmsplice_to_user(struct file *file, struct iov_iter *iter, unsigned int flags)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
struct iov_iter * | iter | |
unsigned int | flags |
1281 | pipe等于After the inode slimming patch, i_pipe/i_bdev/i_cdev share the same* location, so checking ->i_pipe is not enough to verify that this is a* pipe. |
1282 | struct splice_desc sd = {maining length = iov_iter_count(iter), splice flags = flags, cookie = iter} |
1287 | ret等于0 |
1292 | 如果maining length 则 |
1295 | pipe_unlock(pipe) |
1298 | 返回:ret |
名称 | 描述 |
---|---|
do_vmsplice | Note that vmsplice only really supports true splicing _from_ user memory* to a pipe, not the other way around. Splicing from user memory is a simple* operation that can be supported without any funky alignment restrictions* or nasty vm tricks |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |