函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:03:55
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:queue_pages_test_walk

函数原型:static int queue_pages_test_walk(unsigned long start, unsigned long end, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
unsigned longstart
unsigned longend
struct mm_walk *walk
618  vma等于vma
619  qp等于private
620  endvma等于The first byte after our end addresswithin vm_mm.
621  flags等于flags
624  VM_BUG_ON((Our start address within vm_mm. > start) || (The first byte after our end addresswithin vm_mm. < end))
626  如果非first
627  first等于vma
628  如果非flags按位与Skip checks for continuous vmas 的值且start小于Our start address within vm_mm. 则返回:负EFAULT
633  如果非flags按位与Skip checks for continuous vmas 的值且The first byte after our end addresswithin vm_mm. 小于end且非linked list of VM areas per task, sorted by address The first byte after our end addresswithin vm_mm. 小于Our start address within vm_mm. 的值则返回:负EFAULT
643  如果非Check if a vma is migratable 且非flags按位与Verify existing pages in the mapping 的值则返回:1
647  如果endvma大于endendvma等于end
650  如果flags按位与Modifies '_MOVE: lazy migrate on fault
652  如果非is_vm_hugetlb_page(vma)且Flags, see mm.h. 按位与currently active flags 按位或VM_EXEC按位或VM_WRITE的值且非Flags, see mm.h. 按位与Can contain "struct page" and pure PFN pages 的值则change_prot_numa(vma, start, endvma)
656  返回:1
660  如果flags按位与MPOL_MF_VALID则返回:0
662  返回:1