Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wait_for_space

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

Type:int

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
unsignedflags
1090  cycle
1093  Return -EPIPE
1095  If Not pipe_full - Return true if the pipe is full*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@limit: The maximum amount of slots available. Then Return 0
1097  If flags & don't block on the pipe splicing (but Then Return -EAGAIN
1099  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.
1101  Drop the inode semaphore and wait for a pipe event, atomically
Caller
NameDescribe
do_spliceDetermine where to splice to/from.
vmsplice_to_pipevmsplice splices a user address range into a pipe. It can be thought of* as splice-from-memory, where the regular splice is splice-from-file (or* to file). In both cases the output is a pipe, naturally.