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: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.
Proto:static long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | in | |
struct file * | out | |
size_t | len | |
unsigned int | flags |
1769 | ipipe = 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. |
1770 | opipe = 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. |
1778 | If (f_flags | f_flags) & O_NONBLOCK Then flags |= don't block on the pipe splicing (but |
1785 | ret = Make sure there's data to read. Wait for input if we can, otherwise* return an appropriate error. |
1786 | If Not ret Then |
1793 | Return ret |
Name | Describe |
---|---|
SYSCALL_DEFINE4 |
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 |