Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline struct anon_vma *lock_anon_vma_root(struct anon_vma *root, struct anon_vma *anon_vma)

Type:struct anon_vma

Parameter:

TypeParameterName
struct anon_vma *root
struct anon_vma *anon_vma
234  new_root = Root of this anon_vma tree
235  If new_root != root Then
236  If WARN_ON_ONCE(root) Then lease a write lock
238  root = new_root
239  lock for writing
241  Return root
Caller
NameDescribe
anon_vma_cloneAttach the anon_vmas from src to dst
unlink_anon_vmas