Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\range.c Create Date:2022-07-28 09:33:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_range_with_merge

Proto:int add_range_with_merge(struct range *range, int az, int nr_range, u64 start, u64 end)

Type:int

Parameter:

TypeParameterName
struct range *range
intaz
intnr_range
u64start
u64end
33  If start >= end Then Return nr_range
37  When i < nr_range cycle
40  If Not end Then Continue
43  common_start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(start, start)
44  common_end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(end, end)
45  If common_start > common_end Then Continue
49  start = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(start, start)
50  end = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(end, end)
52  Not static to avoid a conflict with the prototype in the Linux headers.
54  start = 0
55  end = 0
56  nr_range--
57  i--
61  Return add_range(range, az, nr_range, start, end)