函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ame_vector_create() - allocate & initialize structure for pinned pfns*@nr_frames: number of pfns slots we should reserve* Allocate and initialize struct pinned_pfns to be able to hold @nr_pfns* pfns.

函数原型:struct frame_vector *frame_vector_create(unsigned int nr_frames)

返回类型:struct frame_vector

参数:

类型参数名称
unsigned intnr_frames
206  size等于sizeof(structframe_vector)加*的长度乘nr_frames
208  如果WARN_ON_ONCE(nr_frames == 0)则返回:NULL
214  如果WARN_ON_ONCE(nr_frames > INT_MAX / *的长度 / 2)则返回:NULL
220  vec等于kvmalloc(size, GFP_KERNEL)
221  如果非vec则返回:NULL
223  Number of frames we have space for 等于nr_frames
224  Number of frames stored in ptrs array 等于0
225  返回:vec