函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This is a useful helper function for locking the anon_vma root as* we traverse the vma->anon_vma_chain, looping over anon_vma's that* have the same vma.* Such anon_vma's should have the same root, so you'd expect to see

函数原型:static inline struct anon_vma *lock_anon_vma_root(struct anon_vma *root, struct anon_vma *anon_vma)

返回类型:struct anon_vma

参数:

类型参数名称
struct anon_vma *root
struct anon_vma *anon_vma
234  new_root等于Root of this anon_vma tree
235  如果new_root不等于root
236  如果WARN_ON_ONCE(root)则lease a write lock
238  root等于new_root
239  lock for writing
241  返回:root
调用者
名称描述
anon_vma_cloneAttach the anon_vmas from src to dst
unlink_anon_vmas