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:add_to_pipe

Proto:ssize_t add_to_pipe(struct pipe_inode_info *pipe, struct pipe_buffer *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
struct pipe_buffer *buf
234  head = head
235  tail = tail
236  mask = ring_size - 1
239  If Value for the false possibility is greater at compile time(!readers) Then
240  send_sig(SIGPIPE, current process, 0)
241  ret = -EPIPE
242  Else if 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
243  ret = -EAGAIN
244  Else
245  bufs[head & mask] = buf
246  head = head + 1
247  Return 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  Return ret
Caller
NameDescribe
iter_to_pipe