---
name: "VOP_REVOKE"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/VOP_REVOKE/9freebsd"
---

# VOP\_REVOKE(9freebsd)

revoke access to a device and its aliases

## NAME

**VOP\_REVOKE** – revoke access to a device and its aliases

## SYNOPSIS

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

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

*int*\

**VOP\_REVOKE**(*struct vnode \*vp*, *int flags*);

## DESCRIPTION

**VOP\_REVOKE**() will administratively revoke access to the device specified by *vp*, as well as any aliases created via [make\_dev\_alias(9)](/make_dev_alias/9.md). Further file operations on any of these devices by processes which have them open will nominally fail. The *flags* must be set to REVOKEALL to signify that all access will be revoked; any other value is invalid.

## LOCKS

The *vp* must be exclusively locked on entry, and will remain locked upon return.

## SEE ALSO

[make\_dev\_alias(9)](/make_dev_alias/9.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Brian Fundakowski Feldman.
