函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:khugepaged_enter

函数原型:static inline int khugepaged_enter(struct vm_area_struct *vma, unsigned long vm_flags)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longvm_flags
57  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则如果khugepaged_always()或khugepaged_req_madv()且vm_flags按位与MADV_HUGEPAGE marked this vma 的值且非vm_flags按位与MADV_NOHUGEPAGE marked this vma 的值且非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
62  如果__khugepaged_enter(The address space we belong to. )则返回:负ENOMEM
64  返回:0
调用者
名称描述
shmem_zero_setupshmem_zero_setup - setup a shared anonymous mapping*@vma: the vma to be mmapped is prepared by do_mmap_pgoff
do_huge_pmd_anonymous_page
khugepaged_enter_vma_merge