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:Send 'sd->len' bytes to socket from 'sd->file' at position 'sd->pos'* using sendpage(). Return the number of bytes sent.

Proto:static int pipe_to_sendpage(struct pipe_inode_info *pipe, struct pipe_buffer *buf, struct splice_desc *sd)

Type:int

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
struct pipe_buffer *buf
struct splice_desc *sd
445  file = file
446  pos = le position
449  If Not Value is more likely to compile time(sendpage) Then Return -EINVAL
452  more = If splice flags & xpect more data Then Sender will send more Else 0
454  If current length < maining length && pipe_occupancy - Return number of slots used in the pipe*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer > 1 Then more |= sendpage() internal : not the last page
458  Return sendpage(file, page, offset, current length , & pos, more)