Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:31:43
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Migrate pages from one node to a target node.* Returns error or the number of pages not migrated.

Proto:static int migrate_to_node(struct mm_struct *mm, int source, int dest, int flags)

Type:int

Parameter:

TypeParameterName
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  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
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  If err Then Put 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  Return err
Caller
NameDescribe
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.