函数逻辑报告 |
Source Code:mm\nommu.c |
Create Date:2022-07-27 16:04:02 |
Last Modify:2020-03-17 21:26:27 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:shrink a VMA by removing the specified chunk from either the beginning or* the end
函数原型:static int shrink_vma(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long from, unsigned long to)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
struct vm_area_struct * | vma | |
unsigned long | from | |
unsigned long | to |
1456 | 如果from大于Our start address within vm_mm. 则The first byte after our end addresswithin vm_mm. 等于from |
1458 | 否则Our start address within vm_mm. 等于to |
1466 | lock for writing |
1468 | 如果from大于start address of region 则 |
1469 | to等于gion allocated to here |
1471 | 否则 |
1472 | start address of region 等于to |
1475 | lease a write lock |
1478 | 返回:0 |
名称 | 描述 |
---|---|
do_munmap | lease a mapping* - under NOMMU conditions the chunk to be unmapped must be backed by a single* VMA, though it need not cover the whole VMA |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |