函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugepage_madvise

函数原型:int hugepage_madvise(struct vm_area_struct *vma, unsigned long *vm_flags, int advice)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned long *vm_flags
intadvice
317  :advice恒等于Worth backing with hugepages
327  vm_flags与等于MADV_NOHUGEPAGE marked this vma 的反
328  vm_flags或等于MADV_HUGEPAGE marked this vma
334  如果非vm_flags按位与VM_NO_KHUGEPAGED的值且khugepaged_enter_vma_merge(vma, * vm_flags)则返回:负ENOMEM
337  退出
338  :advice恒等于Not worth backing with hugepages
339  vm_flags与等于MADV_HUGEPAGE marked this vma 的反
340  vm_flags或等于MADV_NOHUGEPAGE marked this vma
346  退出
349  返回:0