函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:vm_fault_t finish_fault(struct vm_fault *vmf)

返回类型:vm_fault_t

参数:

类型参数名称
struct vm_fault *vmf
3503  ret等于0
3506  如果FAULT_FLAG_xxx flags 按位与Fault was a write access 且非Flags, see mm.h. 按位与VM_SHARED的值则page等于Page handler may use for COW fault
3509  否则page等于->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).
3516  如果非Flags, see mm.h. 按位与VM_SHARED的值则ret等于Checks whether a page fault on the given mm is still reliable
3518  如果非retret等于alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
3520  如果Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated.pte_unmap_unlock(Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated., Page table lock.* Protects pte page table if 'pte'* is not NULL, otherwise pmd.)
3522  返回:ret
调用者
名称描述
do_read_fault
do_cow_fault
do_shared_fault
dax_iomap_pte_fault