This source file includes following definitions.
- ntfs_is_collation_rule_supported
1
2
3
4
5
6
7
8
9 #ifndef _LINUX_NTFS_COLLATE_H
10 #define _LINUX_NTFS_COLLATE_H
11
12 #include "types.h"
13 #include "volume.h"
14
15 static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) {
16 int i;
17
18
19
20
21
22
23 if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG))
24 return false;
25 i = le32_to_cpu(cr);
26 if (likely(((i >= 0) && (i <= 0x02)) ||
27 ((i >= 0x10) && (i <= 0x13))))
28 return true;
29 return false;
30 }
31
32 extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
33 const void *data1, const int data1_len,
34 const void *data2, const int data2_len);
35
36 #endif