函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static struct anon_vma *reusable_anon_vma(struct vm_area_struct *old, struct vm_area_struct *a, struct vm_area_struct *b)

返回类型:struct anon_vma

参数:

类型参数名称
struct vm_area_struct *old
struct vm_area_struct *a
struct vm_area_struct *b
1252  如果Rough compatbility check to quickly see if it's even worth looking* at sharing an anon_vma
1253  anon_vma等于READ_ONCE(Serialized by page_table_lock )
1255  如果anon_vma链表只有一项则返回:anon_vma
1258  返回:NULL
调用者
名称描述
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