Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:khugepaged_prealloc_page

Proto:static bool khugepaged_prealloc_page(struct page **hpage, bool *wait)

Type:bool

Parameter:

TypeParameterName
struct page **hpage
bool *wait
765  If IS_ERR( * hpage) Then
766  If Not wait Then Return false
769  * wait = false
770  * hpage = NULL
771  khugepaged_alloc_sleep()
772  Else if hpage Then
773  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
774  * hpage = NULL
777  Return true
Caller
NameDescribe
khugepaged_do_scan