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:Link contents of ipipe to opipe.
Proto:static int link_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 |
| 1682 | ret = 0 |
| 1689 | pipe_double_lock(ipipe, opipe) |
| 1696 | Do |
| 1697 | If Not readers Then |
| 1734 | flags &= ~page is a gift |
| 1743 | o_head++ |
| 1745 | i_tail++ |
| 1748 | pipe_unlock(ipipe) |
| 1749 | pipe_unlock(opipe) |
| 1754 | If ret > 0 Then wakeup_pipe_readers(opipe) |
| 1757 | Return ret |
| Name | Describe |
|---|---|
| do_tee | This is a tee(1) implementation that works on pipes. It doesn't copy* any data, it simply references the 'in' pages on the 'out' pipe.* The 'flags' used are the SPLICE_F_* variants, currently the only* applicable one is SPLICE_F_NONBLOCK. |
| 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 |