函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\splice.c Create Date:2022-07-29 10:42:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add_to_pipe

函数原型:ssize_t add_to_pipe(struct pipe_inode_info *pipe, struct pipe_buffer *buf)

返回类型:ssize_t

参数:

类型参数名称
struct pipe_inode_info *pipe
struct pipe_buffer *buf
234  head等于head
235  tail等于tail
236  mask等于ring_size减1
239  如果此条件成立可能性小(为编译器优化)(!readers)则
240  send_sig(SIGPIPE, 当前进程, 0)
241  ret等于负EPIPE
242  否则如果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.
243  ret等于负EAGAIN
244  否则
245  bufs[head & mask]等于buf
246  head等于head加1
247  返回:len
249  pipe_buf_release - put a reference to a pipe_buffer*@pipe: the pipe that the buffer belongs to*@buf: the buffer to put a reference to
250  返回:ret
调用者
名称描述
iter_to_pipe