Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:48:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:struct anon_vma *find_mergeable_anon_vma(struct vm_area_struct *vma)

Type:struct anon_vma

Parameter:

TypeParameterName
struct vm_area_struct *vma
1274  near = linked list of VM areas per task, sorted by address
1275  If Not near Then Go to try_prev
1278  anon_vma = Do some basic sanity checking to see if we can re-use the anon_vma* from 'old'
1279  If anon_vma Then Return anon_vma
1281  try_prev :
1282  near = linked list of VM areas per task, sorted by address
1283  If Not near Then Go to none
1286  anon_vma = Do some basic sanity checking to see if we can re-use the anon_vma* from 'old'
1287  If anon_vma Then Return anon_vma
1289  none :
1298  Return NULL
Caller
NameDescribe
__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