函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-27 17:33:46
Last Modify:2022-05-20 09:53:13 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Determine the nodes of an array of pages and store it in an array of status.

函数原型:static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages, const void __user **pages, int *status)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
unsigned longnr_pages
const void __user **pages
int *status
1714  lock for reading
1716 i小于nr_pages循环
1717  addr等于pages
1720  err等于负EFAULT
1722  vma等于Look up the first VMA which satisfies addr < vm_end, NULL if none.
1723  如果非vmaaddr小于Our start address within vm_mm. 则转到:set_status
1727  page等于follow_page(vma, addr, give error on hole if it would be zero )
1729  err等于错误
1730  如果是错误则转到:set_status
1733  err等于如果pagepage_to_nid(page)否则负ENOENT
1734  set_status :
1735  status等于err
1737  pages自加
1738  status自加
1741  lease a read lock
调用者
名称描述
do_pages_statDetermine the nodes of a user array of pages and store it in* a user array of status.