函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return values:* 1 - page is locked; mmap_sem is still held

函数原型:int __lock_page_or_retry(struct page *page, struct mm_struct *mm, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct page *page
struct mm_struct *mm
unsigned intflags
1411  如果flags按位与Retry fault if blocking
1416  如果flags按位与Don't drop mmap_sem and wait when retrying 则返回:0
1419  lease a read lock
1420  如果flags按位与The fault task is in SIGKILL killable region wait_on_page_locked_killable(page)
1422  否则Wait for a page to be unlocked.* This must be called with the caller "holding" the page,* ie with increased "page->count" so that the page won't* go away during the wait..
1424  返回:0
1425  否则
1430  如果ret
1432  返回:0
1434  否则__lock_page - get a lock on the page, assuming we need to sleep to get it*@__page: the page to lock
1436  返回:1