函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__anon_vma_interval_tree_subtree_search

函数原型:static struct anon_vma_chain *__anon_vma_interval_tree_subtree_search(struct anon_vma_chain *node, unsigned long start, unsigned long last)

返回类型:struct anon_vma_chain

参数:

类型参数名称
struct anon_vma_chain *node
unsigned longstart
unsigned longlast
73  当(true)循环
73  如果rb_left
73  struct anon_vma_chain * left = ({
73  __mptr等于rb_left
73  循环
73  当0循环
73  })
73  如果start小于等于rb_subtree_last
73  node等于left
73  继续下一循环
73  如果avc_start_pgoff(node)小于等于last
73  如果start小于等于avc_last_pgoff(node)则返回:node
73  如果rb_right
73  node = ({
73  __mptr等于rb_right
73  循环
73  当0循环
73  })
73  如果start小于等于rb_subtree_last则继续下一循环
73  返回:NULL
调用者
名称描述
__anon_vma_interval_tree_iter_first
__anon_vma_interval_tree_iter_next