[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

vn_strategy Entry Point

Purpose

Accesses blocks of a file.

Syntax


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

Parameters

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.

Description

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

The vn_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.

Return Values

0 Indicates success.

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

Related Information

The buf structure.

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

List of Virtual File System Operations.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]