函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:isolate_huge_page

函数原型:bool isolate_huge_page(struct page *page, struct list_head *list)

返回类型:bool

参数:

类型参数名称
struct page *page
struct list_head *list
5019  bool ret = true
5021  VM_BUG_ON_PAGE(!PageHead(page), page)
5022  加自旋锁
5023  如果非Test to determine whether the hugepage is "active/in-use" (i.e. being linked* to hstate->hugepage_activelist.)* This function can be called for tail pages, but never returns true for them.或非Try to grab a ref unless the page has a refcount of zero, return false if* that is the case.* This can be called when MMU is off so it must not access* any of the virtual mappings.
5024  ret = false
5025  转到:unlock
5027  clear_page_huge_active(page)
5028  链表项移动到尾部
5029  unlock :
5030  自旋锁解锁
5031  返回:ret
调用者
名称描述
queue_pages_hugetlb
add_page_for_migrationResolves the given address to a struct page, isolates it from the LRU and* puts it to the given pagelist
soft_offline_huge_page
check_and_migrate_cma_pages