find_get_entry(9)

find_get_entry9

Find and get a page cache entry

Usage

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

Arguments

mapping

the address_space to search

offset

the page cache index

Overview

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.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.