函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-27 16:59:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Forward declaration

函数原型:static int hugetlb_acct_memory(struct hstate *h, long delta)

返回类型:int

参数:

类型参数名称
struct hstate *h
longdelta
3121  ret等于负ENOMEM
3123  加自旋锁
3141  如果delta大于0则
3142  如果Increase the hugetlb pool such that it can accommodate a reservation* of size 'delta'.小于0则转到:out
3145  如果delta大于cpuset_mems_nr(free_huge_pages_node)则
3147  转到:out
3151  ret等于0
3152  如果delta小于0则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  自旋锁解锁
3157  返回:ret
调用者
名称描述
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