1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * types.h - Defines for NTFS Linux kernel driver specific types.
4 * Part of the Linux-NTFS project.
6 * Copyright (c) 2001-2005 Anton Altaparmakov
9 #ifndef _LINUX_NTFS_TYPES_H
10 #define _LINUX_NTFS_TYPES_H
12 #include <linux/types.h>
17 typedef __u16 __bitwise sle16
;
18 typedef __u32 __bitwise sle32
;
19 typedef __u64 __bitwise sle64
;
21 /* 2-byte Unicode character type. */
22 typedef le16 ntfschar
;
23 #define UCHAR_T_SIZE_BITS 1
26 * Clusters are signed 64-bit values on NTFS volumes. We define two types, LCN
27 * and VCN, to allow for type checking and better code readability.
35 * The NTFS journal $LogFile uses log sequence numbers which are signed 64-bit
36 * values. We define our own type LSN, to allow for type checking and better
43 * The NTFS transaction log $UsnJrnl uses usn which are signed 64-bit values.
44 * We define our own type USN, to allow for type checking and better code
55 #endif /* _LINUX_NTFS_TYPES_H */