1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * collate.h - Defines for NTFS kernel collation handling. Part of the
6 * Copyright (c) 2004 Anton Altaparmakov
9 #ifndef _LINUX_NTFS_COLLATE_H
10 #define _LINUX_NTFS_COLLATE_H
15 static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr
) {
19 * FIXME: At the moment we only support COLLATION_BINARY and
20 * COLLATION_NTOFS_ULONG, so we return false for everything else for
23 if (unlikely(cr
!= COLLATION_BINARY
&& cr
!= COLLATION_NTOFS_ULONG
))
26 if (likely(((i
>= 0) && (i
<= 0x02)) ||
27 ((i
>= 0x10) && (i
<= 0x13))))
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
);
36 #endif /* _LINUX_NTFS_COLLATE_H */