Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Forward declaration

Proto:static int hugetlb_acct_memory(struct hstate *h, long delta)

Type:int

Parameter:

TypeParameterName
struct hstate *h
longdelta
3121  ret = -ENOMEM
3123  spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
3141  If delta > 0 Then
3142  If Increase the hugetlb pool such that it can accommodate a reservation* of size 'delta'. < 0 Then Go to out
3147  Go to out
3151  ret = 0
3152  If delta < 0 Then This routine has two main purposes:* 1) Decrement the reservation count (resv_huge_pages) by the value passed* in unused_resv_pages
3155  out :
3156  spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
3157  Return ret
Caller
NameDescribe
unlock_or_release_subpool
hugepage_new_subpool
hugetlb_fix_reserve_countsA rare out of memory error was encountered which prevented removal of* the reserve map region for a page. The huge page itself was free'ed* and removed from the page cache. This routine will adjust the subpool
alloc_huge_page
hugetlb_vm_op_close
hugetlb_reserve_pages
hugetlb_unreserve_pages