Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\splice.c Create Date:2022-07-28 20:11:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:splice_from_pipe_next - wait for some data to splice from*@pipe: pipe to splice from*@sd: information about the splice operation* Description:* This function will wait for some data and return a positive* value (one) if pipe buffers are available

Proto:static int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd)

Type:int

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
struct splice_desc *sd
555  If signal_pending(current process) Then Return -These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.
558  When pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer cycle
559  If Not writers Then Return 0
562  If umber of bytes already spliced Then Return 0
565  If splice flags & don't block on the pipe splicing (but Then Return -EAGAIN
568  If signal_pending(current process) Then Return -These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.
571  If d to wake up writer Then
573  d to wake up writer = false
576  Drop the inode semaphore and wait for a pipe event, atomically
579  Return 1
Caller
NameDescribe
__splice_from_pipe__splice_from_pipe - splice data from a pipe to given actor*@pipe: pipe to splice from*@sd: information to @actor*@actor: handler that splices the data* Description:* This function does little more than loop over the pipe and call*@actor to do the actual
iter_file_splice_writer_file_splice_write - splice data from a pipe to a file*@pipe: pipe info*@out: file to write to*@ppos: position in @out*@len: number of bytes to splice*@flags: splice modifier flags* Description:* Will either move or copy pages (determined by @flags