BEFS_FIND_KEY

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

 

NAME

befs_find_key - Search for a key within a node  

SYNOPSIS

"SYNOPSIS"

int befs_find_key (struct super_block * sb, befs_btree_node * node, const char * findkey, befs_off_t * value);  

ARGUMENTS

sb
Filesystem superblock
node
Node to find the key within
findkey
-- undescribed --
value
If key is found, the value stored with the key is put here
 

DESCRIPTION

finds exact match if one exists, and returns BEFS_BT_MATCH If no exact match, finds first key in node that is greater (alphabetically) than the search key and returns BEFS_BT_PARMATCH (for partial match, I guess). Can you think of something better to call it?

If no key was a match or greater than the search key, return BEFS_BT_NOT_FOUND.

Use binary search instead of a linear.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

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