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:Make sure there's data to read. Wait for input if we can, otherwise* return an appropriate error.

Proto:static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
unsigned intflags
1470  If Not pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer Then Return 0
1473  ret = 0
1474  pipe_lock(pipe)
1476  When pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer cycle
1479  Break
1481  If Not writers Then Break
1484  ret = -EAGAIN
1485  Break
1487  Drop the inode semaphore and wait for a pipe event, atomically
1490  pipe_unlock(pipe)
1491  Return ret
Caller
NameDescribe
splice_pipe_to_pipe
do_teeThis 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.