vnop_readdir_eofp Entry Point

Purpose

Returns directory entries.

Syntax

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

Parameters

Item Description
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 vnop_readdir_eofp entry point is used to read directory entries. It is similar to vnop_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 vnop_readdir_eofp entry point.

Note: If the call is meant for a JFS2 file system, extra processing is needed to avoid duplicate entries being returned in the user data area, similar to the vnop_readdir entry point.

Execution Environment

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

Return Values

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