函数逻辑报告 |
Source Code:mm\rmap.c |
Create Date:2022-07-27 16:25:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__anon_vma_prepare - attach an anon_vma to a memory region*@vma: the memory region in question* This makes sure the memory mapping described by 'vma' has* an 'anon_vma' attached to it, so that we can associate the
函数原型:int __anon_vma_prepare(struct vm_area_struct *vma)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma |
182 | might_sleep() |
185 | 如果非avc则转到:out_enomem |
188 | anon_vma等于d_mergeable_anon_vma is used by anon_vma_prepare, to check* neighbouring vmas for a suitable anon_vma, before it goes off* to allocate a new anon_vma |
189 | allocated = NULL |
190 | 如果非anon_vma则 |
191 | anon_vma等于anon_vma_alloc() |
192 | 如果此条件成立可能性小(为编译器优化)(!anon_vma)则转到:out_enomem_free_avc |
199 | 加自旋锁 |
208 | 自旋锁解锁 |
213 | 如果此条件成立可能性小(为编译器优化)(avc)则anon_vma_chain_free(avc) |
216 | 返回:0 |
218 | out_enomem_free_avc : |
219 | anon_vma_chain_free(avc) |
220 | out_enomem : |
221 | 返回:负ENOMEM |
名称 | 描述 |
---|---|
anon_vma_prepare |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |