函数逻辑报告 |
Source Code:mm\migrate.c |
Create Date:2022-07-27 17:32:21 |
Last Modify:2022-05-20 09:53:13 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Restore a potential migration pte to a working pte entry
函数原型:static bool remove_migration_pte(struct page *page, struct vm_area_struct *vma, unsigned long addr, void *old)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
struct vm_area_struct * | vma | |
unsigned long | addr | |
void * | old |
207 | struct page_vma_mapped_walk pvmw = {page = old, vma = vma, address = addr, flags = Avoid racy checks | Look for migarion entries rather than present PTEs , } |
217 | VM_BUG_ON_PAGE(PageTail(page), page) |
221 | 否则new等于page减 Our offset within mapping. 加linear_page_index(vma, address) |
236 | 如果pte_swp_soft_dirty( * pte)则pte等于pte_mksoft_dirty(pte) |
242 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
246 | 如果此条件成立可能性小(为编译器优化)(is_zone_device_page(new))则 |
247 | 如果is_device_private_page(new)则 |
255 | pte等于pte_mkhuge(pte) |
256 | pte等于arch_make_huge_pte(pte, vma, new, 0) |
260 | 否则page_dup_rmap(new, true) |
262 | 否则 |
282 | 返回:true |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |