函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:04:05 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Step 2: apply policy to a range and do splits.
函数原型:static int mbind_range(struct mm_struct *mm, unsigned long start, unsigned long end, struct mempolicy *new_pol)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
unsigned long | start | |
unsigned long | end | |
struct mempolicy * | new_pol |
753 | err等于0 |
762 | 如果start大于Our start address within vm_mm. 则prev等于vma |
770 | 如果mpol_equal(vma_policy(vma), new_pol)则继续下一循环 |
773 | pgoff等于Offset (within vm_file) in PAGE_SIZEunits 加vmstart减Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值 |
775 | prev等于Given a mapping request (addr,end,vm_flags,file,pgoff), figure out* whether that can be merged with its predecessor or its successor |
778 | 如果prev则 |
781 | 如果mpol_equal(vma_policy(vma), new_pol)则继续下一循环 |
784 | 转到:replace |
786 | 如果Our start address within vm_mm. 不等于vmstart则 |
796 | replace : |
802 | out : |
803 | 返回:err |
名称 | 描述 |
---|---|
do_mbind |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |