Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return values:* 1 - page is locked; mmap_sem is still held

Proto:int __lock_page_or_retry(struct page *page, struct mm_struct *mm, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct page *page
struct mm_struct *mm
unsigned intflags
1411  If flags & Retry fault if blocking Then
1416  If flags & Don't drop mmap_sem and wait when retrying Then Return 0
1419  lease a read lock
1420  If flags & The fault task is in SIGKILL killable region Then wait_on_page_locked_killable(page)
1422  Else 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  Return 0
1425  Else
1430  If ret Then
1432  Return 0
1434  Else __lock_page - get a lock on the page, assuming we need to sleep to get it*@__page: the page to lock
1436  Return 1