Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Do some basic sanity checking to see if we can re-use the anon_vma* from 'old'

Proto:static struct anon_vma *reusable_anon_vma(struct vm_area_struct *old, struct vm_area_struct *a, struct vm_area_struct *b)

Type:struct anon_vma

Parameter:

TypeParameterName
struct vm_area_struct *old
struct vm_area_struct *a
struct vm_area_struct *b
1252  If Rough compatbility check to quickly see if it's even worth looking* at sharing an anon_vma Then
1253  anon_vma = READ_ONCE(Serialized by page_table_lock )
1255  If anon_vma && list_is_singular - tests whether a list has just one entry.*@head: the list to test. Then Return anon_vma
1258  Return NULL
Caller
NameDescribe
find_mergeable_anon_vmad_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