Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:queue_pages_test_walk

Proto:static int queue_pages_test_walk(unsigned long start, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
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  If Not first Then
627  first = vma
628  If Not (flags & Skip checks for continuous vmas ) && start < Our start address within vm_mm. Then Return -EFAULT
633  If Not (flags & Skip checks for continuous vmas ) && The first byte after our end addresswithin vm_mm. < end && ( Not 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. ) Then Return -EFAULT
643  If Not Check if a vma is migratable && Not (flags & Verify existing pages in the mapping ) Then Return 1
647  If endvma > end Then endvma = end
650  If flags & Modifies '_MOVE: lazy migrate on fault Then
652  If Not is_vm_hugetlb_page(vma) && Flags, see mm.h. & ( currently active flags | VM_EXEC | VM_WRITE) && Not (Flags, see mm.h. & Can contain "struct page" and pure PFN pages ) Then change_prot_numa(vma, start, endvma)
656  Return 1
660  If flags & MPOL_MF_VALID Then Return 0
662  Return 1