.TH "__get_lease" 9 "__get_lease" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME __get_lease \- revoke all outstanding leases on file .SH SYNOPSIS .B "int" __get_lease .BI "(struct inode *" inode "," .BI "unsigned int " mode ");" .SH ARGUMENTS .IP "inode" 12 the inode of the file to return .IP "mode" 12 the open mode (read or write) .SH "DESCRIPTION" get_lease (inlined for speed) has checked there already is a lease on this file. Leases are broken on a call to \fBopen\fP or \fBtruncate\fP. This function can sleep unless you specified O_NONBLOCK to your \fBopen\fP.