函数逻辑报告 |
Source Code:mm\gup.c |
Create Date:2022-07-27 15:59:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:follow_page_pte
函数原型:static struct page *follow_page_pte(struct vm_area_struct *vma, unsigned long address, pmd_t *pmd, unsigned int flags, struct dev_pagemap **pgmap)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | address | |
pmd_t * | pmd | |
unsigned int | flags | |
struct dev_pagemap ** | pgmap |
182 | retry : |
183 | 如果此条件成立可能性小(为编译器优化)(pmd_bad( * pmd))则返回:no_page_table(vma, flags) |
188 | 如果非pte_present(pte)则 |
195 | 如果此条件成立可能性大(为编译器优化)(!(flags & wait for page to replace migration entry ))则转到:no_page |
199 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
200 | 如果非is_migration_entry(entry)则转到:no_page |
202 | pte_unmap_unlock(ptep, ptl) |
203 | migration_entry_wait(mm, pmd, address) |
204 | 转到:retry |
209 | pte_unmap_unlock(ptep, ptl) |
210 | 返回:NULL |
213 | page等于vm_normal_page(vma, address, pte) |
214 | 如果非page且pte_devmap(pte)且flags按位与do get_page on page 则 |
224 | 否则如果此条件成立可能性小(为编译器优化)(!page)则 |
255 | 如果flags按位与do get_page on page 则 |
256 | 如果此条件成立可能性小(为编译器优化)(!try_get_page(page))则 |
261 | 如果flags按位与mark page accessed 则 |
272 | 如果flags按位与lock present pages 且Flags, see mm.h. 按位与VM_LOCKED则 |
274 | 如果PageTransCompound returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved.则转到:out |
287 | lru_add_drain() |
298 | out : |
299 | pte_unmap_unlock(ptep, ptl) |
300 | 返回:page |
301 | no_page : |
302 | pte_unmap_unlock(ptep, ptl) |
305 | 返回:no_page_table(vma, flags) |
名称 | 描述 |
---|---|
follow_pmd_mask |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |