Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free a region of KVA allocated by alloc_vmap_area

Proto:static void free_vmap_area(struct vmap_area *va)

Type:void

Parameter:

TypeParameterName
struct vmap_area *va
1072  spin_lock( & vmap_area_lock)
1073  unlink_va(va, & vmap_area_root)
1074  spin_unlock( & vmap_area_lock)
1079  spin_lock( & free_vmap_area_lock)
1080  Merge de-allocated chunk of VA memory with previous* and next free blocks. If coalesce is not done a new* free area is inserted. If VA has been merged, it is* freed.
1081  spin_unlock( & free_vmap_area_lock)
Caller
NameDescribe
alloc_vmap_areaAllocate a region of KVA of the specified size and alignment, within the* vstart and vend.
new_vmap_blockw_vmap_block - allocates new vmap_block and occupies 2^order pages in this* block