Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
collate.h File Reference
#include "types.h"
#include "volume.h"

Go to the source code of this file.

Functions

int ntfs_collate (ntfs_volume *vol, COLLATION_RULE cr, const void *data1, const int data1_len, const void *data2, const int data2_len)
 

Function Documentation

int ntfs_collate ( ntfs_volume vol,
COLLATION_RULE  cr,
const void data1,
const int  data1_len,
const void data2,
const int  data2_len 
)

ntfs_collate - collate two data items using a specified collation rule : ntfs volume to which the data items belong : collation rule to use when comparing the items : first data item to collate : length in bytes of : second data item to collate : length in bytes of

Collate the two data items and using the collation rule and return -1, 0, ir 1 if is found, respectively, to collate before, to match, or to collate after .

For speed we use the collation rule as an index into two tables of function pointers to call the appropriate collation function.

Definition at line 101 of file collate.c.