Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determine the nodes of an array of pages and store it in an array of status.

Proto:static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages, const void __user **pages, int *status)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longnr_pages
const void __user **pages
int *status
1714  lock for reading
1716  When i < nr_pages cycle
1717  addr = pages
1720  err = -EFAULT
1722  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
1723  If Not vma || addr < Our start address within vm_mm. Then Go to set_status
1727  page = follow_page(vma, addr, give error on hole if it would be zero )
1729  err = PTR_ERR(page)
1730  If IS_ERR(page) Then Go to set_status
1733  err = If page Then page_to_nid(page) Else -ENOENT
1734  set_status :
1735  status = err
1737  pages++
1738  status++
1741  lease a read lock
Caller
NameDescribe
do_pages_statDetermine the nodes of a user array of pages and store it in* a user array of status.