.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "BEFS_BT_READ_NODE" "" "06 October 2005" "" "" .SH NAME befs_bt_read_node \- read in btree node and convert to cpu byteorder .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int befs_bt_read_node (struct super_block * \fIsb\fB, befs_data_stream * \fIds\fB, befs_btree_node * \fInode\fB, befs_off_t \fInode_off\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsb\fB\fR Filesystem superblock .TP \fB\fIds\fB\fR Datastream to read from .TP \fB\fInode\fB\fR Buffer in which to place the btree node .TP \fB\fInode_off\fB\fR Starting offset (in bytes) of the node in \fIds\fR .SH "DESCRIPTION" .PP Calls befs_read_datastream to read in the indicated btree node and makes sure its header fields are in cpu byteorder, byteswapping if necessary. .SH "NOTE" .PP node->bh must be NULL when this function called first time. Don't forget brelse(node->bh) after last call. .PP On success, returns BEFS_OK and *\fInode\fR contains the btree node that starts at \fInode_off\fR, with the node->head fields in cpu byte order. .PP On failure, BEFS_ERR is returned.