Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free a vmap area, caller ensuring that the area has been unmapped* and flush_cache_vunmap had been called for the correct range* previously.

Proto:static void free_vmap_area_noflush(struct vmap_area *va)

Type:void

Parameter:

TypeParameterName
struct vmap_area *va
1365  spin_lock( & vmap_area_lock)
1366  unlink_va(va, & vmap_area_root)
1367  spin_unlock( & vmap_area_lock)
1369  nr_lazy = atomic_long_add_return((va_end - va_start) >> PAGE_SHIFT determines the page size , & vmap_lazy_nr)
1373  llist_add - add a new entry*@new: new entry to be added*@head: the head for your lock-less list* Returns true if the list was empty prior to adding this entry.
1375  If Value for the false possibility is greater at compile time(nr_lazy > lazy_max_pages()) Then Kick off a purge of the outstanding lazy areas. Don't bother if somebody* is already purging.
Caller
NameDescribe
free_unmap_vmap_areaFree and unmap a vmap area
free_vmap_block