---
name: "fcntl_setlease"
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_setlease"
---

# fcntl\_setlease(9)

sets a lease on an open file

## NAME

fcntl\_setlease - sets a lease on an open file

## SYNOPSIS

**int fcntl\_setlease(unsigned int** *fd***, struct file \*** *filp***, long** *arg***);**

## ARGUMENTS

*fd*

open file descriptor

*filp*

file pointer

*arg*

type of lease to obtain

## DESCRIPTION

Call this fcntl to establish a lease on the file. Note that you also need to call **F\_SETSIG** to receive a signal when the lease is broken.

## COPYRIGHT
