---
name: "locks_unlink_lock"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/locks_unlink_lock"
---

# locks\_unlink\_lock(9)

Delete a lock and then free it.

## NAME

locks\_unlink\_lock - Delete a lock and then free it.

## SYNOPSIS

**void locks\_unlink\_lock(struct file\_lock \*\*** *thisfl\_p***);**

## ARGUMENTS

*thisfl\_p*

pointer that points to the fl\_next field of the previous inode-\>i\_flock list entry

## DESCRIPTION

Unlink a lock from all lists and free the namespace reference, but don't free it yet. Wake up processes that are blocked waiting for this lock and notify the FS that the lock has been cleared.

Must be called with the i\_lock held!

## COPYRIGHT
