Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:42:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:vm_fault_t finish_fault(struct vm_fault *vmf)

Type:vm_fault_t

Parameter:

TypeParameterName
struct vm_fault *vmf
3503  ret = 0
3506  If FAULT_FLAG_xxx flags & Fault was a write access && Not (Flags, see mm.h. & VM_SHARED) Then page = Page handler may use for COW fault
3509  Else page = ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).
3516  If Not (Flags, see mm.h. & VM_SHARED) Then ret = Checks whether a page fault on the given mm is still reliable
3518  If Not ret Then ret = alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
3520  If Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated. Then 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  Return ret
Caller
NameDescribe
do_read_fault
do_cow_fault
do_shared_fault