函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:17:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:unmapped_area_topdown
函数原型:unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_unmapped_area_info * | info |
1965 | length等于length加align_mask |
1973 | gap_end等于high_limit |
1976 | high_limit等于gap_end减length |
1978 | 如果low_limit大于high_limit则返回:负ENOMEM |
1983 | gap_start等于 highest vma end address |
1984 | 如果gap_start小于等于high_limit则转到:found_highest |
1988 | 如果RB_EMPTY_ROOT( & mm_rb)则返回:负ENOMEM |
1990 | vma等于rb_entry(rb_node, structvm_area_struct, vm_rb) |
1994 | 当(true)循环 |
1996 | gap_start等于如果linked list of VM areas per task, sorted by address 则vm_end_gap(linked list of VM areas per task, sorted by address )否则0 |
1997 | 如果gap_start小于等于high_limit且rb_right则 |
1998 | right等于rb_entry(rb_right, structvm_area_struct, vm_rb) |
2007 | check_current : |
2009 | gap_end等于vm_start_gap(vma) |
2017 | 如果rb_left则 |
2018 | left等于rb_entry(rb_left, structvm_area_struct, vm_rb) |
2028 | 当(true)循环 |
2042 | found : |
2044 | 如果gap_end大于high_limit则gap_end等于high_limit |
2047 | found_highest : |
2050 | gap_end减等于gap_end减align_offset按位与align_mask |
2054 | 返回:gap_end |
名称 | 描述 |
---|---|
vm_unmapped_area | Search for an unmapped address range |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |