函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__put_anon_vma

函数原型:void __put_anon_vma(struct anon_vma *anon_vma)

返回类型:void

参数:

类型参数名称
struct anon_vma *anon_vma
1794  root等于Root of this anon_vma tree
1796  anon_vma_free(anon_vma)
1797  如果root不等于anon_vmaatomic_dec_and_test( & 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)则anon_vma_free(root)
调用者
名称描述
page_lock_anon_vma_readSimilar to page_get_anon_vma() except it locks the anon_vma.* Its a little more complex as it tries to keep the fast path to a single* atomic op -- the trylock. If we fail the trylock, we fall back to getting a