函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmacache_find

函数原型:struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)

返回类型:struct vm_area_struct

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
64  idx等于VMACACHE_HASH(addr)
67  count_vm_vmacache_event(VMACACHE_FIND_CALLS)
69  如果非vmacache_valid(mm)则返回:NULL
72 i小于VMACACHE_SIZE循环
73  vma等于vmas[idx]
75  如果vma
85  如果idx先自加恒等于VMACACHE_SIZEidx等于0
89  返回:NULL
调用者
名称描述
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.