函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempolicy.h Create Date:2022-07-27 06:53:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check if a vma is migratable

函数原型:static inline bool vma_migratable(struct vm_area_struct *vma)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
178  如果Flags, see mm.h. 按位与Memory mapped I/O or similar 按位或Page-ranges managed without "struct page", just pure PFN 的值则返回:false
185  如果vma_is_dax(vma)则返回:false
189  如果Flags, see mm.h. 按位与Huge TLB Page VM 则返回:false
198  如果File we map to (can be NULL). gfp_zone(mapping_gfp_mask(f_mapping))小于policy_zone则返回:false
202  返回:true
调用者
名称描述
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