---
name: "__break_lease"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__break_lease"
---

# \_\_break\_lease(9)

revoke all outstanding leases on file

## NAME

\_\_break\_lease - revoke all outstanding leases on file

## SYNOPSIS

**int \_\_break\_lease(struct inode \*** *inode***, unsigned int** *mode***, unsigned int** *type***);**

## ARGUMENTS

*inode*

the inode of the file to return

*mode*

O\_RDONLY: break only write leases; O\_WRONLY or O\_RDWR: break all leases

*type*

FL\_LEASE: break leases and delegations; FL\_DELEG: break only delegations

## DESCRIPTION

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 **open** or **truncate**. This function can sleep unless you specified **O\_NONBLOCK** to your **open**.

## COPYRIGHT
