函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmacache_update

函数原型:void vmacache_update(unsigned long addr, struct vm_area_struct *newvma)

返回类型:void

参数:

类型参数名称
unsigned longaddr
struct vm_area_struct *newvma
38  如果This task may be accessing a foreign mm via (for example)* get_user_pages()->find_vma(). The vmacache is task-local and this* task's vmacache pertains to a different mm (ie, its own). There is* nothing we can do here.vmas[VMACACHE_HASH(addr)]等于newvma
调用者
名称描述
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_vma_exactlook up the first VMA exactly that exactly matches addr* - 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.