vnop_revoke Entry Point

Purpose

Revokes all access to an object.

Syntax

int vnop_revoke (vp, cmd, flag, vinfop, crp)
struct vnode * vp;
int  cmd;
int  flag;
caddr_t  vinfop;
struct ucred * crp;

Parameters

Item Description
vp Points to the virtual node (v-node) containing the object.
cmd Indicates whether the calling process holds the file open. This parameter takes the following values:
0
The process did not have the file open.
1
The process had the file open.
2
The process had the file open and the reference count in the file structure was greater than 1.
flag Identifies the flags from the file structure.
vinfop This parameter is currently unused.
crp Points to the cred structure. This structure contains data that the file system can use to validate access permission.

Description

The vnop_revoke entry point is called to revoke further access to an object.

Execution Environment

The vnop_revoke entry point can be called from the process environment only.

Return Values

Item Description
0 Indicates success.

Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.