函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:khugepaged_prealloc_page

函数原型:static bool khugepaged_prealloc_page(struct page **hpage, bool *wait)

返回类型:bool

参数:

类型参数名称
struct page **hpage
bool *wait
765  如果是错误
766  如果非wait则返回:false
769  * wait = false
770  * hpage = NULL
771  khugepaged_alloc_sleep()
772  否则如果hpage
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  返回:true
调用者
名称描述
khugepaged_do_scan