函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-27 10:05:12
Last Modify:2022-05-22 11:14:39 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__reserve_region_with_split

函数原型:static void __init __reserve_region_with_split(struct resource *root, resource_size_t start, resource_size_t end, const char *name)

返回类型:void

参数:

类型参数名称
struct resource *root
resource_size_tstart
resource_size_tend
const char *name
998  parent等于root
1000  res等于alloc_resource(DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear)
1001  struct resource * next_res = NULL
1002  type等于resource_type(root)
1004  如果非res则返回
1007  name等于name
1008  start等于start
1009  end等于end
1010  flags等于type按位或Driver has marked this resource busy
1011  desc等于IORES_DESC_NONE
1013  当1循环
1015  conflict等于Return the conflict entry if you can't request it
1016  如果非conflict
1017  如果非next_res退出
1019  res等于next_res
1020  next_res = NULL
1021  继续下一循环
1025  如果start小于等于startend大于等于end
1027  free_resource(res)
1028  WARN_ON(next_res)
1029  退出
1033  如果start大于start
1034  end等于end
1035  end等于start减1
1036  如果end小于end
1048  否则
1049  start等于end加1
调用者
名称描述
reserve_region_with_split