函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int lock_page_maybe_drop_mmap(struct vm_fault *vmf, struct page *page, struct file **fpin)

返回类型:int

参数:

类型参数名称
struct vm_fault *vmf
struct page *page
struct file **fpin
2346  如果Return true if the page was successfully locked则返回:1
2354  如果FAULT_FLAG_xxx flags 按位与Don't drop mmap_sem and wait when retrying 则返回:0
2357  fpin等于maybe_unlock_mmap_for_io(vmf, * fpin)
2358  如果FAULT_FLAG_xxx flags 按位与The fault task is in SIGKILL killable region
2359  如果__lock_page_killable(page)则
2366  如果( * fpin == NULL)则lease a read lock
2368  返回:0
2370  否则__lock_page - get a lock on the page, assuming we need to sleep to get it*@__page: the page to lock
2372  返回:1
调用者
名称描述
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