Function report |
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 activity | Download SCCT | Chinese |
Name:vmacache_find
Proto:struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)
Type:struct vm_area_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | mm | |
| unsigned long | addr |
| 64 | idx = VMACACHE_HASH(addr) |
| 69 | If Not vmacache_valid(mm) Then Return NULL |
| 72 | When i < VMACACHE_SIZE cycle |
| 75 | If vma Then |
| 80 | If Our start address within vm_mm. <= addr && The first byte after our end addresswithin vm_mm. > addr Then |
| 82 | Return vma |
| 85 | If ++idx == VMACACHE_SIZE Then idx = 0 |
| 89 | Return NULL |
| Name | Describe |
|---|---|
| find_vma | look up the first VMA in which addr resides, NULL if none* - should be called with mm->mmap_sem at least held readlocked |
| find_vma | Look up the first VMA which satisfies addr < vm_end, NULL if none. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |