函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:move_hugetlb_state

函数原型:void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason)

返回类型:void

参数:

类型参数名称
struct page *oldpage
struct page *newpage
intreason
5046  h等于page_hstate(oldpage)
5048  hugetlb_lock will make sure a parallel cgroup rmdir won't happen* when we migrate hugepages
5049  set_page_owner_migrate_reason(newpage, reason)
5061  如果Internal hugetlb specific page flag. Do not use outside of the hugetlb* code
5062  old_nid等于page_to_nid(oldpage)
5063  new_nid等于page_to_nid(newpage)
5065  SetPageHugeTemporary(oldpage)
5066  ClearPageHugeTemporary(newpage)
5068  加自旋锁
5069  如果surplus_huge_pages_node[old_nid]则
5073  自旋锁解锁
调用者
名称描述
unmap_and_move_huge_pageCounterpart of unmap_and_move_page() for hugepage migration