Scroll to navigation

__FIND_GET_PAGE(9) Memory Management in Linux __FIND_GET_PAGE(9)

NAME

__find_get_page - find and get a page reference

SYNOPSIS

struct page * __find_get_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 with an increased refcount.

If the slot holds a shadow entry of a previously evicted page, or a swap entry from shmem/tmpfs, it is returned.

Otherwise, NULL is returned.

COPYRIGHT

June 2023 Kernel Hackers Manual 3.10