函数逻辑报告 |
Source Code:mm\madvise.c |
Create Date:2022-07-27 16:42:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:We can potentially split a vm area into separate* areas, each area with its own behavior.
函数原型:static long madvise_behavior(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, int behavior)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_area_struct ** | prev | |
unsigned long | start | |
unsigned long | end | |
int | behavior |
70 | error等于0 |
76 | new_flags等于new_flags按位与App will not benefit from clustered reads 的反按位与App will access data sequentially 的反 |
77 | 退出 |
79 | new_flags等于new_flags按位与App will not benefit from clustered reads 的反按位或App will access data sequentially |
80 | 退出 |
82 | new_flags等于new_flags按位与App will access data sequentially 的反按位或App will not benefit from clustered reads |
83 | 退出 |
86 | 退出 |
88 | 如果Flags, see mm.h. 按位与Memory mapped I/O or similar 则 |
93 | 退出 |
101 | 退出 |
102 | 当:behavior恒等于Undo MADV_WIPEONFORK |
103 | new_flags与等于Wipe VMA contents in child. 的反 |
104 | 退出 |
107 | 退出 |
118 | 如果error则转到:out_convert_errno |
120 | 退出 |
129 | 如果new_flags恒等于Flags, see mm.h. 则 |
134 | pgoff等于Offset (within vm_file) in PAGE_SIZEunits 加start减Our start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值 |
135 | prev等于Given a mapping request (addr,end,vm_flags,file,pgoff), figure out* whether that can be merged with its predecessor or its successor |
138 | 如果prev则 |
145 | 如果start不等于Our start address within vm_mm. 则 |
146 | 如果此条件成立可能性小(为编译器优化)( number of VMAs >= sysctl_max_map_count)则 |
150 | error等于__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail. |
151 | 如果error则转到:out_convert_errno |
156 | 如果此条件成立可能性小(为编译器优化)( number of VMAs >= sysctl_max_map_count)则 |
160 | error等于__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail. |
161 | 如果error则转到:out_convert_errno |
165 | success : |
169 | Flags, see mm.h. 等于new_flags |
171 | out_convert_errno : |
178 | out : |
179 | 返回:error |
名称 | 描述 |
---|---|
madvise_vma |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |