Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:59:22
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_move_pages_to_node

Proto:static int do_move_pages_to_node(struct mm_struct *mm, struct list_head *pagelist, int node)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
struct list_head *pagelist
intnode
1502  If list_empty - tests whether a list is empty*@head: the list to test. Then Return 0
1505  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
1507  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
1509  Return err
Caller
NameDescribe
do_pages_moveMigrate an array of page address onto an array of nodes and fill* the corresponding array of status.