Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_page_maybe_drop_mmap - lock the page, possibly dropping the mmap_sem*@vmf - the vm_fault for this fault.*@page - the page to lock.*@fpin - the pointer to the file we may pin (or is already pinned).

Proto:static int lock_page_maybe_drop_mmap(struct vm_fault *vmf, struct page *page, struct file **fpin)

Type:int

Parameter:

TypeParameterName
struct vm_fault *vmf
struct page *page
struct file **fpin
2346  If Return true if the page was successfully locked Then Return 1
2354  If FAULT_FLAG_xxx flags & Don't drop mmap_sem and wait when retrying Then Return 0
2357  fpin = maybe_unlock_mmap_for_io(vmf, * fpin)
2358  If FAULT_FLAG_xxx flags & The fault task is in SIGKILL killable region Then
2359  If __lock_page_killable(page) Then
2366  If ( * fpin == NULL) Then lease a read lock
2368  Return 0
2370  Else __lock_page - get a lock on the page, assuming we need to sleep to get it*@__page: the page to lock
2372  Return 1
Caller
NameDescribe
filemap_faultlemap_fault - read in file data for page fault handling*@vmf: struct vm_fault containing details of the fault* filemap_fault() is invoked via the vma operations vector for a* mapped memory region to read in file data during a page fault