1__FIND_LOCK_PAGE(9)       Memory Management in Linux       __FIND_LOCK_PAGE(9)
2
3
4

NAME

6       __find_lock_page - locate, pin and lock a pagecache page
7

SYNOPSIS

9       struct page * __find_lock_page(struct address_space * mapping,
10                                      pgoff_t offset);
11

ARGUMENTS

13       mapping
14           the address_space to search
15
16       offset
17           the page index
18

DESCRIPTION

20       Looks up the page cache slot at mapping & offset. If there is a page
21       cache page, it is returned locked and with an increased refcount.
22
23       If the slot holds a shadow entry of a previously evicted page, or a
24       swap entry from shmem/tmpfs, it is returned.
25
26       Otherwise, NULL is returned.
27
28       __find_lock_page may sleep.
29
31Kernel Hackers Manual 3.10         June 2019               __FIND_LOCK_PAGE(9)
Impressum