Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\khugepaged.c Create Date:2022-07-28 16:04:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hugepage_madvise

Proto:int hugepage_madvise(struct vm_area_struct *vma, unsigned long *vm_flags, int advice)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned long *vm_flags
intadvice
317  Case advice == Worth backing with hugepages
327  vm_flags &= ~MADV_NOHUGEPAGE marked this vma
328  vm_flags |= MADV_HUGEPAGE marked this vma
334  If Not (vm_flags & VM_NO_KHUGEPAGED) && khugepaged_enter_vma_merge(vma, * vm_flags) Then Return -ENOMEM
337  Break
338  Case advice == Not worth backing with hugepages
339  vm_flags &= ~MADV_HUGEPAGE marked this vma
340  vm_flags |= MADV_NOHUGEPAGE marked this vma
346  Break
349  Return 0