find_lock_page(9)

find_lock_page9

Locate, pin and lock a pagecache page

Usage

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

Arguments

mapping

the address_space to search

offset

the page index

Overview

Locates the desired pagecache page, locks it, increments its reference count and returns its address.

Returns zero if the page was not present. find_lock_page may sleep.

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.