函数逻辑报告 |
Source Code:fs\splice.c |
Create Date:2022-07-29 10:42:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:splice_pipe_to_pipe
函数原型:static int splice_pipe_to_pipe(struct pipe_inode_info *ipipe, struct pipe_inode_info *opipe, size_t len, unsigned int flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct pipe_inode_info * | ipipe | |
| struct pipe_inode_info * | opipe | |
| size_t | len | |
| unsigned int | flags |
| 1544 | ret等于0 |
| 1545 | bool input_wakeup = false |
| 1548 | retry : |
| 1549 | ret等于Make sure there's data to read. Wait for input if we can, otherwise* return an appropriate error. |
| 1553 | ret等于Make sure there's writeable room. Wait for room if we can, otherwise* return an appropriate error. |
| 1562 | pipe_double_lock(ipipe, opipe) |
| 1569 | 循环 |
| 1572 | 如果非readers则 |
| 1582 | 如果pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer且非writers则退出 |
| 1595 | 如果flags按位与don't block on the pipe splicing (but 则 |
| 1605 | pipe_unlock(ipipe) |
| 1606 | pipe_unlock(opipe) |
| 1607 | 转到:retry |
| 1625 | 否则 |
| 1641 | flags与等于page is a gift 的反 |
| 1649 | o_head自加 |
| 1656 | pipe_unlock(ipipe) |
| 1657 | pipe_unlock(opipe) |
| 1662 | 如果ret大于0则wakeup_pipe_readers(opipe) |
| 1665 | 如果input_wakeup则wakeup_pipe_writers(ipipe) |
| 1668 | 返回:ret |
| 名称 | 描述 |
|---|---|
| do_splice | Determine where to splice to/from. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |