Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unlink_anon_vmas

Proto:void unlink_anon_vmas(struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
399  struct anon_vma * root = NULL
406  anon_vma = anon_vma
408  root = 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
409  anon_vma_interval_tree_remove(avc, & Interval tree of private "related" vmas )
415  If RB_EMPTY_ROOT( & rb_root) Then
416  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.--
417  Continue
420  deletes entry from list
421  anon_vma_chain_free(avc)
423  If Serialized by page_table_lock Then degree--
425  unlock_anon_vma_root(root)
433  anon_vma = anon_vma
435  VM_WARN_ON(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.)
436  put_anon_vma(anon_vma)
438  deletes entry from list
439  anon_vma_chain_free(avc)
Caller
NameDescribe
free_pgtables
__split_vma__split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail.
anon_vma_cloneAttach the anon_vmas from src to dst
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.
anon_vma_merge