---
name: "find_lock_page"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/find_lock_page"
---

# find\_lock\_page(9)

locate, pin and lock a pagecache page

## 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

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.

## COPYRIGHT
