Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct file *in
struct file *out
size_tlen
unsigned intflags
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.
1771  ret = -EINVAL
1777  If ipipe && opipe && ipipe != opipe Then
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
Caller
NameDescribe
SYSCALL_DEFINE4