'\" t .\" Title: __break_lease .\" 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 "__BREAK_LEASE" "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" __break_lease \- revoke all outstanding leases on file .SH "SYNOPSIS" .HP \w'int\ __break_lease('u .BI "int __break_lease(struct\ inode\ *\ " "inode" ", unsigned\ int\ " "mode" ", unsigned\ int\ " "type" ");" .SH "ARGUMENTS" .PP \fIinode\fR .RS 4 the inode of the file to return .RE .PP \fImode\fR .RS 4 O_RDONLY: break only write leases; O_WRONLY or O_RDWR: break all leases .RE .PP \fItype\fR .RS 4 FL_LEASE: break leases and delegations; FL_DELEG: break only delegations .RE .SH "DESCRIPTION" .PP break_lease (inlined for speed) has checked there already is at least some kind of lock (maybe a lease) on this file\&. Leases are broken on a call to \fBopen\fR or \fBtruncate\fR\&. This function can sleep unless you specified \fBO_NONBLOCK\fR to your \fBopen\fR\&. .SH "COPYRIGHT" .br