Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempolicy.h Create Date:2022-07-28 05:53:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check if a vma is migratable

Proto:static inline bool vma_migratable(struct vm_area_struct *vma)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
178  If Flags, see mm.h. & (Memory mapped I/O or similar | Page-ranges managed without "struct page", just pure PFN ) Then Return false
185  If vma_is_dax(vma) Then Return false
189  If Flags, see mm.h. & Huge TLB Page VM Then Return false
198  If File we map to (can be NULL). && gfp_zone(mapping_gfp_mask(f_mapping)) < policy_zone Then Return false
202  Return true
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
queue_pages_test_walk
add_page_for_migrationResolves the given address to a struct page, isolates it from the LRU and* puts it to the given pagelist