'\" t .\" Title: locks_mandatory_area .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "LOCKS_MANDATORY_AREA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" locks_mandatory_area \- Check for a conflicting lock .SH "SYNOPSIS" .HP \w'int\ locks_mandatory_area('u .BI "int locks_mandatory_area(struct\ inode\ *\ " "inode" ", struct\ file\ *\ " "filp" ", loff_t\ " "start" ", loff_t\ " "end" ", unsigned\ char\ " "type" ");" .SH "ARGUMENTS" .PP \fIinode\fR .RS 4 the file to check .RE .PP \fIfilp\fR .RS 4 how the file was opened (if it was) .RE .PP \fIstart\fR .RS 4 first byte in the file to check .RE .PP \fIend\fR .RS 4 lastbyte in the file to check .RE .PP \fItype\fR .RS 4 \fBF_WRLCK\fR for a write lock, else \fBF_RDLCK\fR .RE .SH "DESCRIPTION" .PP Searches the inode\*(Aqs list of locks to find any POSIX locks which conflict\&. .SH "COPYRIGHT" .br