Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lock_page_killable

Proto:int __lock_page_killable(struct page *__page)

Type:int

Parameter:

TypeParameterName
struct page *__page
1390  page = compound_head(__page)
1391  q = page_waitqueue(page)
1392  Return wait_on_page_bit_common(q, page, PG_locked, Convenience macros for the sake of set_current_state: , Hold ref to page and take the bit when woken, like* __lock_page() waiting on then setting PG_locked.)
Caller
NameDescribe
__lock_page_or_retryReturn values:* 1 - page is locked; mmap_sem is still held
lock_page_maybe_drop_mmaplock_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).
lock_page_killablelock_page_killable is like lock_page but can be interrupted by fatal* signals. It returns 0 if it locked the page and -EINTR if it was* killed while waiting.