函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Send 'sd->len' bytes to socket from 'sd->file' at position 'sd->pos'* using sendpage(). Return the number of bytes sent.

函数原型:static int pipe_to_sendpage(struct pipe_inode_info *pipe, struct pipe_buffer *buf, struct splice_desc *sd)

返回类型:int

参数:

类型参数名称
struct pipe_inode_info *pipe
struct pipe_buffer *buf
struct splice_desc *sd
445  file等于file
446  pos等于le position
449  如果非此条件成立可能性大(为编译器优化)(sendpage)则返回:负EINVAL
452  more等于如果splice flags 按位与xpect more data Sender will send more 否则0
454  如果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则more或等于sendpage() internal : not the last page
458  返回:sendpage(file, page, offset, current length , & pos, more)