函数逻辑报告 |
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 |
函数名称: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.
函数原型:static long vmsplice_to_pipe(struct file *file, struct iov_iter *iter, unsigned int flags)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| struct iov_iter * | iter | |
| unsigned int | flags |
| 1310 | ret等于0 |
| 1311 | buf_flag等于0 |
| 1313 | 如果flags按位与pages passed in are a gift 则buf_flag等于page is a gift |
| 1316 | 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. |
| 1321 | ret等于wait_for_space(pipe, flags) |
| 1324 | pipe_unlock(pipe) |
| 1325 | 如果ret大于0则wakeup_pipe_readers(pipe) |
| 1327 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |