Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:25:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Count and return the number of huge pages in the reserve map* that intersect with the range [f, t).

Proto:static long region_count(struct resv_map *resv, long f, long t)

Type:long

Parameter:

TypeParameterName
struct resv_map *resv
longf
longt
548  head = regions
550  chg = 0
552  spin_lock( & lock)
558  If to <= f Then Continue
560  If from >= t Then Break
563  seg_from = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(from, f)
564  seg_to = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(to, t)
566  chg += seg_to - seg_from
568  spin_unlock( & lock)
570  Return chg
Caller
NameDescribe
hugetlb_vm_op_close