函数逻辑报告 |
Source Code:mm\vmalloc.c |
Create Date:2022-07-27 16:28:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Purges all lazily-freed vmap areas.
函数原型:static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | start | |
unsigned long | end |
1283 | 如果此条件成立可能性小(为编译器优化)(valist == NULL)则返回:false |
1303 | flush_tlb_kernel_range(start, end) |
1304 | resched_threshold等于lazy_max_pages()左移1位 |
1306 | 加自旋锁 |
1309 | orig_start等于va_start |
1317 | va等于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. |
1320 | 如果is_vmalloc_or_module_addr((void * )orig_start)则kasan_release_vmalloc(orig_start, orig_end, va_start, va_end) |
1324 | atomic_long_sub(nr, & vmap_lazy_nr) |
1326 | 如果atomic_long_read( & vmap_lazy_nr)小于resched_threshold则cond_resched_lock( & free_vmap_area_lock) |
1329 | 自旋锁解锁 |
1330 | 返回:true |
名称 | 描述 |
---|---|
try_purge_vmap_area_lazy | Kick off a purge of the outstanding lazy areas. Don't bother if somebody* is already purging. |
purge_vmap_area_lazy | |
_vm_unmap_aliases |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |