Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_within_this_va

Proto:static __always_inline bool is_within_this_va(struct vmap_area *va, unsigned long size, unsigned long align, unsigned long vstart)

Type:bool

Parameter:

TypeParameterName
struct vmap_area *va
unsigned longsize
unsigned longalign
unsigned longvstart
775  If va_start > vstart Then nva_start_addr = @a is a power of 2 value (va_start, align)
777  Else nva_start_addr = @a is a power of 2 value (vstart, align)
781  If nva_start_addr + size < nva_start_addr || nva_start_addr < vstart Then Return false
785  Return nva_start_addr + size <= va_end
Caller
NameDescribe
find_vmap_lowest_matchFind the first free block(lowest start address) in the tree,* that will accomplish the request corresponding to passing* parameters.