vnop_strategy Entry Point

Purpose

Accesses blocks of a file.

Syntax

int vnop_strategy ( vp,  bp,  crp)
struct vnode *vp;
struct buf *bp;
struct ucred *crp;

Description

Note: The vnop_strategy entry point is not implemented in Version 3.2 of the operating system.

The vnop_strategy entry point accesses blocks of a file. This entry point is intended to provide a block-oriented interface for servers for efficiency in paging.

Parameters

Item Description
vp Points to the virtual node (v-node) of the file.
bp Points to a buf structure that describes the buffer.
crp Points to the cred structure. This structure contains data that applications can use to validate access permission.

Return Values

Item Description
0 Indicates success.

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