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

# vfs\_test\_lock(9)

test file byte range lock

## NAME

vfs\_test\_lock - test file byte range lock

## SYNOPSIS

**int vfs\_test\_lock(struct file \*** *filp***, struct file\_lock \*** *fl***);**

## ARGUMENTS

*filp*

The file to test lock for

*fl*

The lock to test; also used to hold result

## DESCRIPTION

Returns -ERRNO on failure. Indicates presence of conflicting lock by setting conf-\>fl\_type to something other than F\_UNLCK.

## COPYRIGHT
