Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-28 14:36:40
Last Modify:2020-03-17 21:26:27 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add a region into the global tree

Proto:static void add_nommu_region(struct vm_region *region)

Type:void

Parameter:

TypeParameterName
struct vm_region *region
501  validate_nommu_regions()
503  parent = NULL
504  p = rb_node
505  When p cycle
506  parent = p
507  pregion = rb_entry(parent, structvm_region, vm_rb)
508  If start address of region < start address of region Then p = rb_left
510  Else if start address of region > start address of region Then p = rb_right
512  Else if pregion == region Then Return
514  Else BUG()
518  rb_link_node( & link in global region tree , parent, p)
519  rb_insert_color( & link in global region tree , & nommu_region_tree)
521  validate_nommu_regions()
Caller
NameDescribe
do_mmaphandle mapping creation for uClinux
split_vmasplit a vma into two pieces at address 'addr', a new vma is allocated either* for the first part or the tail.
shrink_vmashrink a VMA by removing the specified chunk from either the beginning or* the end