函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-27 16:16:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:struct anon_vma *find_mergeable_anon_vma(struct vm_area_struct *vma)

返回类型:struct anon_vma

参数:

类型参数名称
struct vm_area_struct *vma
1274  near等于linked list of VM areas per task, sorted by address
1275  如果非near则转到:try_prev
1278  anon_vma等于Do some basic sanity checking to see if we can re-use the anon_vma* from 'old'
1279  如果anon_vma则返回:anon_vma
1281  try_prev :
1282  near等于linked list of VM areas per task, sorted by address
1283  如果非near则转到:none
1286  anon_vma等于Do some basic sanity checking to see if we can re-use the anon_vma* from 'old'
1287  如果anon_vma则返回:anon_vma
1289  none :
1298  返回:NULL
调用者
名称描述
__anon_vma_prepare__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