函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmalloc.c Create Date:2022-07-27 16:28:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static void free_vmap_area_noflush(struct vmap_area *va)

返回类型:void

参数:

类型参数名称
struct vmap_area *va
1365  加自旋锁
1366  unlink_va(va, & vmap_area_root)
1367  自旋锁解锁
1369  nr_lazy等于atomic_long_add_return((va_end - va_start) >> PAGE_SHIFT determines the page size , & vmap_lazy_nr)
1373  添加列表项
1375  如果此条件成立可能性小(为编译器优化)(nr_lazy > lazy_max_pages())则Kick off a purge of the outstanding lazy areas. Don't bother if somebody* is already purging.
调用者
名称描述
free_unmap_vmap_areaFree and unmap a vmap area
free_vmap_block