Scroll to navigation

FIND_LOCK_PAGE(9) Memory Management in Linux FIND_LOCK_PAGE(9)

NAME

find_lock_page - locate, pin and lock a pagecache page

SYNOPSIS

struct page * find_lock_page(struct address_space * mapping, pgoff_t offset);

ARGUMENTS

mapping

the address_space to search

offset

the page index

DESCRIPTION

Looks up the page cache slot at mapping & offset. If there is a page cache page, it is returned locked and with an increased refcount.

Otherwise, NULL is returned.

find_lock_page may sleep.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10