[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 1

vn_readdir_eofp Entry Point

Purpose

Returns directory entries.

Syntax

int
vn_readdirr_eofp (vp, uiop, eofp, crp)
struct vnode *vp;
struct uio *uiop;
int *eofp;
struct ucred *crp;

Parameters

vp Points to the directory vnode to be processed.
uiop Points to the uiop structure describing the user's buffer.
eofp Points to a word that places the eop structure.
crp Specifies user's credentials.

Description

The vn_readdir_eofp entry point is used to read directory entries. It is similar to vn_readdir except that it takes the additional parameter, eofp. The location pointed to by the eofp parameter should be set to 1 if the readdir request reached the end of the directory. Otherwise, it should be set to 0.

File systems that do not define GFS_VERSION421 in their gfs flags do not need to supply a vn_readdir_eofp entry point.

Execution Environment

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

Return Values

Zero Indicates a successful operation.
Nonzero Indicates that the operation failed; return values should be chosen from the /usr/include/sys/errno.h file.

Related Information

The readdir subroutine.

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

List of Virtual File System Operations.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]