---
name: "VOP_LEASE"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/VOP_LEASE"
---

# VOP\_LEASE(9)

validate a vnode for a particular set of credentials and operation type

## NAME

**VOP\_LEASE** – validate a vnode for a particular set of credentials and operation type

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/mount.h\>**

*int*\

**VOP\_LEASE**(*struct vnode \*vp*, *struct thread \*td*, *struct ucred \*cred*, *int type*);

## DESCRIPTION

This entry point is currently not implemented. The idea is to validate a vnode for a particular set of user credentials and operation type. The two operation types supported are LEASE\_READ and LEASE\_WRITE.

## RETURN VALUES

The function currently returns 0 in all cases.

## ERRORS

## SEE ALSO

[VOP\_READ(9)](/VOP_READ/9.md), [VOP\_WRITE(9)](/VOP_WRITE/9.md)

## LOCKS

The vnode must be exclusively locked on entry, and should remain exclusively locked on return.

## AUTHORS

This manual page was written by Matt Dillon.
