函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:04:31
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Migrate pages from one node to a target node.* Returns error or the number of pages not migrated.

函数原型:static int migrate_to_node(struct mm_struct *mm, int source, int dest, int flags)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
intsource
intdest
intflags
1043  LIST_HEAD(pagelist)
1044  err等于0
1046  nodes_clear(nmask)
1047  The inline keyword gives the compiler room to decide to inline, or* not inline a function as it sees best(source, nmask)
1054  VM_BUG_ON(!(flags & (Move pages owned by this process to conformto policy | Move every page to conform to policy )))
1055  Walk through page tables and collect pages to be migrated
1058  如果非链表为空
1059  err等于migrate_pages - migrate the pages specified in a list, to the free pages* supplied as the target for the page migration*@from: The list of pages to be migrated.*@get_new_page: The function used to allocate free pages to be used
1061  如果errPut previously isolated pages back onto the appropriate lists* from where they were once taken off for compaction/migration.* This function shall be used whenever the isolated pageset has been* built from lru, balloon, hugetlbfs page
1065  返回:err
调用者
名称描述
do_migrate_pagesMove pages between the two nodesets so as to preserve the physical* layout as much as possible.* Returns the number of page that could not be moved.