Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:migrate_page_add

Proto:static int migrate_page_add(struct page *page, struct list_head *pagelist, unsigned long flags)

Type:int

Parameter:

TypeParameterName
struct page *page
struct list_head *pagelist
unsigned longflags
989  head = compound_head(page)
993  If flags & Move every page to conform to policy || page_mapcount(head) == 1 Then
1007  Return -EIO
1011  Return 0
Caller
NameDescribe
queue_pages_pmdqueue_pages_pmd() has four possible return values:* 0 - pages are placed on the right node or queued successfully
queue_pages_pte_rangeScan through pages checking if pages follow certain conditions,* and move them to the pagelist if they do