函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vma_interval_tree_iter_first

函数原型:struct vm_area_struct *vma_interval_tree_iter_first(struct rb_root_cached *root, unsigned long start, unsigned long last)

返回类型:struct vm_area_struct

参数:

类型参数名称
struct rb_root_cached *root
unsigned longstart
unsigned longlast
25  如果非rb_node则返回:NULL
25  node = ({
25  __mptr等于rb_node
25  循环
25  当0循环
25  __mptr__builtin_offsetof(structvm_area_struct, rb)
25  })
25  如果rb_subtree_last小于start则返回:NULL
25  leftmost = ({
25  __mptr等于rb_leftmost
25  循环
25  当0循环
25  __mptr__builtin_offsetof(structvm_area_struct, rb)
25  })
25  如果vma_start_pgoff(leftmost)大于last则返回:NULL
25  返回:vma_interval_tree_subtree_search(node, start, last)