'\" t .\" Title: unlock_page .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "UNLOCK_PAGE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" unlock_page \- unlock a locked page .SH "SYNOPSIS" .HP \w'void\ unlock_page('u .BI "void unlock_page(struct\ page\ *\ " "page" ");" .SH "ARGUMENTS" .PP \fIpage\fR .RS 4 the page .RE .SH "DESCRIPTION" .PP Unlocks the page and wakes up sleepers in \fB___wait_on_page_locked\fR\&. Also wakes sleepers in \fBwait_on_page_writeback\fR because the wakeup mechananism between PageLocked pages and PageWriteback pages is shared\&. But that\*(Aqs OK \- sleepers in \fBwait_on_page_writeback\fR just go back to sleep\&. .PP The mb is necessary to enforce ordering between the clear_bit and the read of the waitqueue (to avoid SMP races with a parallel \fBwait_on_page_locked\fR)\&. .SH "COPYRIGHT" .br