函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__anon_vma_interval_tree_insert

函数原型:static inline void __anon_vma_interval_tree_insert(struct anon_vma_chain *node, struct rb_root_cached *root)

返回类型:void

参数:

类型参数名称
struct anon_vma_chain *node
struct rb_root_cached *root
73  struct rb_node * * link = & rb_node, * rb_parent = NULL
73  start等于avc_start_pgoff(node), last等于avc_last_pgoff(node)
73  bool leftmost = true
73 link循环
73  rb_parent等于link
73  parent = ({
73  __mptr等于rb_parent
73  循环
73  当0循环
73  })
73  如果rb_subtree_last小于lastrb_subtree_last等于last
73  如果start小于avc_start_pgoff(parent)则link等于rb_left
73  否则
73  link等于rb_right
73  leftmost = false
73  rb_subtree_last等于last
73  rb_link_node( & locked by anon_vma->rwsem , rb_parent, link)
73  rb_insert_augmented_cached( & locked by anon_vma->rwsem , root, leftmost, & __anon_vma_interval_tree_augment)
调用者
名称描述
anon_vma_interval_tree_insert