Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:anon_vma_alloc

Proto:static inline struct anon_vma *anon_vma_alloc(void)

Type:struct anon_vma

Parameter:Nothing

83  anon_vma = kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL)
84  If anon_vma Then
85  atomic_set( & The refcount is taken on an anon_vma when there is no* guarantee that the vma of page tables will exist for* the duration of the operation. A caller that takes* the reference is responsible for clearing up the* anon_vma if they are the last user on release, 1)
86  Count of child anon_vmas and VMAs which points to this anon_vma.* This counter is used for making decision about reusing anon_vma* instead of forking new one. See comments in function anon_vma_clone. = 1
87  Parent of this anon_vma = anon_vma
92  Root of this anon_vma tree = anon_vma
95  Return anon_vma
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
anon_vma_forkAttach vma to its own anon_vma, as well as to the anon_vmas that* the corresponding VMA in the parent process is attached to.* Returns 0 on success, non-zero on failure.