.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "FCNTL_GETLEASE" "" "06 October 2005" "" "" .SH NAME fcntl_getlease \- Enquire what lease is currently active .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int fcntl_getlease (struct file * \fIfilp\fB); \fR .SH "ARGUMENTS" .TP \fB\fIfilp\fB\fR the file .SH "DESCRIPTION" .PP The value returned by this function will be one of (if no lease break is pending): .PP F_RDLCK to indicate a shared lease is held. .PP F_WRLCK to indicate an exclusive lease is held. .PP F_UNLCK to indicate no lease is held. .PP (if a lease break is pending): .PP F_RDLCK to indicate an exclusive lease needs to be changed to a shared lease (or removed). .PP F_UNLCK to indicate the lease needs to be removed. .SH "XXX" .PP sfr & willy disagree over whether F_INPROGRESS should be returned to userspace.