'\" t .\" Title: fcntl_getlease .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FCNTL_GETLEASE" "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" fcntl_getlease \- Enquire what lease is currently active .SH "SYNOPSIS" .HP \w'int\ fcntl_getlease('u .BI "int fcntl_getlease(struct\ file\ *\ " "filp" ");" .SH "ARGUMENTS" .PP \fIfilp\fR .RS 4 the file .RE .SH "DESCRIPTION" .PP The value returned by this function will be one of (if no lease break is pending): .PP \fBF_RDLCK\fR to indicate a shared lease is held\&. .PP \fBF_WRLCK\fR to indicate an exclusive lease is held\&. .PP \fBF_UNLCK\fR to indicate no lease is held\&. .PP (if a lease break is pending): .PP \fBF_RDLCK\fR to indicate an exclusive lease needs to be changed to a shared lease (or removed)\&. .PP \fBF_UNLCK\fR to indicate the lease needs to be removed\&. .PP XXX: sfr & willy disagree over whether F_INPROGRESS should be returned to userspace\&. .SH "COPYRIGHT" .br