BEFS_BT_READ_NODE

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

befs_bt_read_node - read in btree node and convert to cpu byteorder  

SYNOPSIS

"SYNOPSIS"

int befs_bt_read_node (struct super_block * sb, befs_data_stream * ds, befs_btree_node * node, befs_off_t node_off);  

ARGUMENTS

sb
Filesystem superblock
ds
Datastream to read from
node
Buffer in which to place the btree node
node_off
Starting offset (in bytes) of the node in ds
 

DESCRIPTION

Calls befs_read_datastream to read in the indicated btree node and makes sure its header fields are in cpu byteorder, byteswapping if necessary.  

NOTE

node->bh must be NULL when this function called first time. Don't forget brelse(node->bh) after last call.

On success, returns BEFS_OK and *node contains the btree node that starts at node_off, with the node->head fields in cpu byte order.

On failure, BEFS_ERR is returned.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

This document was created by man2html, using the manual pages.
Time: 13:31:21 GMT, October 06, 2005