Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Increment or decrement surplus_huge_pages. Keep node-specific counters* balanced by operating on them in a round-robin fashion.* Returns 1 if an adjustment was made.

Proto:static int adjust_pool_surplus(struct hstate *h, nodemask_t *nodes_allowed, int delta)

Type:int

Parameter:

TypeParameterName
struct hstate *h
nodemask_t *nodes_allowed
intdelta
2282  VM_BUG_ON(delta != - 1 && delta != 1)
2284  If delta < 0 Then
2286  If surplus_huge_pages_node[node] Then Go to found
2289  Else
2291  If surplus_huge_pages_node[node] < nr_huge_pages_node[node] Then Go to found
2296  Return 0
2298  found :
2299  surplus_huge_pages += delta
2300  surplus_huge_pages_node[node] += delta
2301  Return 1
Caller
NameDescribe
set_max_huge_pages