函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:02:50
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add a region into the global tree

函数原型:static void add_nommu_region(struct vm_region *region)

返回类型:void

参数:

类型参数名称
struct vm_region *region
501  validate_nommu_regions()
503  parent = NULL
504  p等于rb_node
505 p循环
506  parent等于p
507  pregion等于rb_entry(parent, structvm_region, vm_rb)
508  如果start address of region 小于start address of region p等于rb_left
510  否则如果start address of region 大于start address of region p等于rb_right
512  否则如果pregion恒等于region则返回
514  否则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()
调用者
名称描述
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