'\" t .\" Title: posix_lock_file_wait .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "POSIX_LOCK_FILE_WAIT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * 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" posix_lock_file_wait \- Apply a POSIX\-style lock to a file .SH "SYNOPSIS" .HP \w'int\ posix_lock_file_wait('u .BI "int posix_lock_file_wait(struct\ file\ *\ " "filp" ", struct\ file_lock\ *\ " "fl" ");" .SH "ARGUMENTS" .PP \fIfilp\fR .RS 4 The file to apply the lock to .RE .PP \fIfl\fR .RS 4 The lock to be applied .RE .SH "DESCRIPTION" .PP Add a POSIX style lock to a file\&. We merge adjacent & overlapping locks whenever possible\&. POSIX locks are sorted by owner task, then by starting address .SH "COPYRIGHT" .br