函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:10:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
函数原型:vm_fault_t alloc_set_pte(struct vm_fault *vmf, struct mem_cgroup *memcg, struct page *page)
返回类型:vm_fault_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_fault * | vmf | |
struct mem_cgroup * | memcg | |
struct page * | page |
3437 | vma等于Target VMA |
3445 | VM_BUG_ON_PAGE(memcg, page) |
3447 | ret等于do_set_pmd(vmf, page) |
3448 | 如果ret不等于VM_FAULT_FALLBACK则返回:ret |
3453 | ret等于pte_alloc_one_map(vmf) |
3459 | 如果此条件成立可能性小(为编译器优化)(!pte_none( * Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated.))则返回:VM_FAULT_NOPAGE |
3462 | flush_icache_page(vma, page) |
3467 | 如果write且非Flags, see mm.h. 按位与VM_SHARED的值则 |
3469 | page_add_new_anon_rmap(page, vma, Faulting virtual address , false) |
3472 | 否则 |
3476 | set_pte_at(The address space we belong to. , Faulting virtual address , Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated., entry) |
3481 | 返回:0 |
名称 | 描述 |
---|---|
finish_fault | sh_fault - finish page fault once we have prepared the page to fault*@vmf: structure describing the fault* This function handles all that is needed to finish a page fault once the* page to fault in is prepared |
filemap_map_pages |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |