Function report | 
Source Code:fs\splice.c | 
Create Date:2022-07-28 20:11:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:splice_pipe_to_pipe
Proto:static int splice_pipe_to_pipe(struct pipe_inode_info *ipipe, struct pipe_inode_info *opipe, size_t len, unsigned int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | Do | 
| 1572 | If Not readers Then | 
| 1582 | If pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer && Not writers Then Break | 
| 1592 | If ret Then Break | 
| 1595 | If flags & don't block on the pipe splicing (but Then | 
| 1605 | pipe_unlock(ipipe) | 
| 1606 | pipe_unlock(opipe) | 
| 1607 | Go to retry | 
| 1625 | Else | 
| 1641 | flags &= ~page is a gift | 
| 1649 | o_head++ | 
| 1656 | pipe_unlock(ipipe) | 
| 1657 | pipe_unlock(opipe) | 
| 1662 | If ret > 0 Then wakeup_pipe_readers(opipe) | 
| 1665 | If input_wakeup Then wakeup_pipe_writers(ipipe) | 
| 1668 | Return ret | 
| Name | Describe | 
|---|---|
| do_splice | Determine where to splice to/from. | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |