Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:classify_va_fit_type

Proto:static __always_inline enum fit_type classify_va_fit_type(struct vmap_area *va, unsigned long nva_start_addr, unsigned long size)

Type:enum fit_type

Parameter:

TypeParameterName
struct vmap_area *va
unsigned longnva_start_addr
unsigned longsize
902  If nva_start_addr < va_start || nva_start_addr + size > va_end Then Return NOTHING_FIT
907  If va_start == nva_start_addr Then
908  If va_end == nva_start_addr + size Then type = full fit
910  Else type = left edge fit
912  Else if va_end == nva_start_addr + size Then
913  type = right edge fit
914  Else
915  type = NE_FIT_TYPE
918  Return type
Caller
NameDescribe
__alloc_vmap_areaReturns a start address of the newly allocated area, if success.* Otherwise a vend is returned that indicates failure.