[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

vn_revoke Entry Point

Purpose

Revokes all access to an object.

Syntax

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

Parameters

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 vn_revoke entry point is called to revoke further access to an object.

Execution Environment

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

Return Values

0 Indicates success.

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

Related Information

The frevoke subroutine, revoke subroutine.

Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.

List of Virtual File System Operations.


[ Previous | Next | Contents | Home | Search ]