---
name: "fcntl_getlease"
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/fcntl_getlease"
---

# fcntl\_getlease(9)

Enquire what lease is currently active

## NAME

fcntl\_getlease - Enquire what lease is currently active

## SYNOPSIS

**int fcntl\_getlease(struct file \*** *filp***);**

## ARGUMENTS

*filp*

the file

## DESCRIPTION

The value returned by this function will be one of (if no lease break is pending):

**F\_RDLCK** to indicate a shared lease is held.

**F\_WRLCK** to indicate an exclusive lease is held.

**F\_UNLCK** to indicate no lease is held.

(if a lease break is pending):

**F\_RDLCK** to indicate an exclusive lease needs to be changed to a shared lease (or removed).

**F\_UNLCK** to indicate the lease needs to be removed.

XXX: sfr & willy disagree over whether F\_INPROGRESS should be returned to userspace.

## COPYRIGHT
