Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:47:42
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:relay_file_splice_read

Proto:static ssize_t relay_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)

Type:ssize_t

Parameter:

TypeParameterName
struct file *in
loff_t *ppos
struct pipe_inode_info *pipe
size_tlen
unsigned intflags
1293  nonpad_ret = 0
1295  ret = 0
1296  spliced = 0
1298  When len && Not spliced cycle
1299  ret = subbuf_splice_actor - splice up to one subbuf's worth of data
1300  If ret < 0 Then Break
1302  Else if Not ret Then
1305  Break
1308  ppos += ret
1309  If ret > len Then len = 0
1311  Else len -= ret
1313  spliced += nonpad_ret
1314  nonpad_ret = 0
1317  If spliced Then Return spliced
1320  Return ret