Scroll to navigation

FIND_GET_ENTRY(9) Memory Management in Linux FIND_GET_ENTRY(9)

NAME

find_get_entry - find and get a page cache entry

SYNOPSIS

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

ARGUMENTS

struct address_space * mapping
the address_space to search

pgoff_t offset

the page cache 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

July 2017 Kernel Hackers Manual 4.11