Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmacache_find

Proto:struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)

Type:struct vm_area_struct

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
64  idx = VMACACHE_HASH(addr)
67  count_vm_vmacache_event(VMACACHE_FIND_CALLS)
69  If Not vmacache_valid(mm) Then Return NULL
72  When i < VMACACHE_SIZE cycle
73  vma = vmas[idx]
75  If vma Then
85  If ++idx == VMACACHE_SIZE Then idx = 0
89  Return NULL
Caller
NameDescribe
find_vmalook up the first VMA in which addr resides, NULL if none* - should be called with mm->mmap_sem at least held readlocked
find_vmaLook up the first VMA which satisfies addr < vm_end, NULL if none.