函数逻辑报告

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

函数名称:Check if we need to grow the arrays holding pages and partial page* descriptions.

函数原型:int splice_grow_spd(const struct pipe_inode_info *pipe, struct splice_pipe_desc *spd)

返回类型:int

参数:

类型参数名称
const struct pipe_inode_info *pipe
struct splice_pipe_desc *spd
260  max_usage等于READ_ONCE(max_usage)
262  pages[] & partial[] arrays size 等于max_usage
263  如果max_usage小于等于PIPE_DEF_BUFFERS则返回:0
266  page map 等于分配数组内存
267  pages[] may not be contig 等于分配数组内存
270  如果page map pages[] may not be contig 则返回:0
273  释放内存
274  释放内存
275  返回:负ENOMEM
调用者
名称描述
tracing_splice_read_pipe
tracing_buffers_splice_read
subbuf_splice_actorsubbuf_splice_actor - splice up to one subbuf's worth of data