---
name: "locks_mandatory_locked"
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_mandatory_locked"
---

# locks\_mandatory\_locked(9)

Check for an active lock

## NAME

locks\_mandatory\_locked - Check for an active lock

## SYNOPSIS

**int locks\_mandatory\_locked(struct file \*** *file***);**

## ARGUMENTS

*file*

the file to check

## DESCRIPTION

Searches the inode's list of locks to find any POSIX locks which conflict. This function is called from **locks\_verify\_locked** only.

## COPYRIGHT
