函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pipe_fs_i.h Create Date:2022-07-27 06:51:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pipe_empty - Return true if the pipe is empty*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer

函数原型:static inline bool pipe_empty(unsigned int head, unsigned int tail)

返回类型:bool

参数:

类型参数名称
unsigned inthead
unsigned inttail
116  返回:head恒等于tail
调用者
名称描述
pipe_truncate
pipe_readableDone while waiting without holding the pipe lock - thus the READ_ONCE()
pipe_read
pipe_write
pipe_pollNo kernel lock held - fine
splice_from_pipe_feedsplice_from_pipe_feed - feed available data from a pipe to a file*@pipe: pipe to splice from*@sd: information to @actor*@actor: handler that splices the data* Description:* This function loops over the pipe and calls @actor to do the* actual moving of a
splice_from_pipe_nextsplice_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
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
splice_direct_to_actorsplice_direct_to_actor - splices data directly between two non-pipes*@in: file to splice from*@sd: actor information on where to splice to*@actor: handles the data splicing* Description:* This is a special case helper to splice directly between two
ipipe_prepMake sure there's data to read. Wait for input if we can, otherwise* return an appropriate error.
splice_pipe_to_pipe
link_pipeLink contents of ipipe to opipe.