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

# locks\_lock\_inode\_wait(9)

Apply a lock to an inode

## NAME

locks\_lock\_inode\_wait - Apply a lock to an inode

## SYNOPSIS

**int locks\_lock\_inode\_wait(struct inode \*** *inode***, struct file\_lock \*** *fl***);**

## ARGUMENTS

*inode*

inode of the file to apply to

*fl*

The lock to be applied

## DESCRIPTION

Apply a POSIX or FLOCK style lock request to an inode.

## COPYRIGHT
