Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\frame_vector.c Create Date:2022-07-28 16:34:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ame_vector_to_pages - convert frame vector to contain page pointers*@vec: frame vector to convert* Convert @vec to contain array of page pointers. If the conversion is* successful, return 0. Otherwise return an error. Note that we do not grab

Proto:int frame_vector_to_pages(struct frame_vector *vec)

Type:int

Parameter:

TypeParameterName
struct frame_vector *vec
160  If Not Does array contain pages or pfns? Then Return 0
162  nums = frame_vector_pfns(vec)
163  When i < Number of frames stored in ptrs array cycle If Not pfn_valid(nums[i]) Then
165  Return -EINVAL
166  pages = nums
167  When i < Number of frames stored in ptrs array cycle pages[i] = pfn_to_page(nums[i])
169  Does array contain pages or pfns? = false
170  Return 0