'\" t .\" Title: vfs_test_lock .\" 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 "VFS_TEST_LOCK" "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" vfs_test_lock \- test file byte range lock .SH "SYNOPSIS" .HP \w'int\ vfs_test_lock('u .BI "int vfs_test_lock(struct\ file\ *\ " "filp" ", struct\ file_lock\ *\ " "fl" ");" .SH "ARGUMENTS" .PP \fIfilp\fR .RS 4 The file to test lock for .RE .PP \fIfl\fR .RS 4 The lock to test; also used to hold result .RE .SH "DESCRIPTION" .PP Returns \-ERRNO on failure\&. Indicates presence of conflicting lock by setting conf\->fl_type to something other than F_UNLCK\&. .SH "COPYRIGHT" .br