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:Check if we need to grow the arrays holding pages and partial page* descriptions.

Proto:int splice_grow_spd(const struct pipe_inode_info *pipe, struct splice_pipe_desc *spd)

Type:int

Parameter:

TypeParameterName
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  If max_usage <= PIPE_DEF_BUFFERS Then Return 0
266  page map = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
267  pages[] may not be contig = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
270  If page map && pages[] may not be contig Then Return 0
273  kfree(page map )
274  kfree(pages[] may not be contig )
275  Return -ENOMEM
Caller
NameDescribe
tracing_splice_read_pipe
tracing_buffers_splice_read