Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-28 09:05:25
Last Modify:2022-05-22 11:14:39 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__reserve_region_with_split

Proto:static void __init __reserve_region_with_split(struct resource *root, resource_size_t start, resource_size_t end, const char *name)

Type:void

Parameter:

TypeParameterName
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  If Not res Then Return
1007  name = name
1008  start = start
1009  end = end
1010  flags = type | Driver has marked this resource busy
1011  desc = IORES_DESC_NONE
1013  When 1 cycle
1015  conflict = Return the conflict entry if you can't request it
1016  If Not conflict Then
1017  If Not next_res Then Break
1019  res = next_res
1020  next_res = NULL
1021  Continue
1025  If start <= start && end >= end Then
1027  free_resource(res)
1028  WARN_ON(next_res)
1029  Break
1033  If start > start Then
1034  end = end
1035  end = start - 1
1036  If end < end Then
1048  Else
1049  start = end + 1
Caller
NameDescribe
reserve_region_with_split