Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
statfs.h
Go to the documentation of this file.
1 #ifndef _UAPI_GENERIC_STATFS_H
2 #define _UAPI_GENERIC_STATFS_H
3 
4 #include <linux/types.h>
5 
6 
7 /*
8  * Most 64-bit platforms use 'long', while most 32-bit platforms use '__u32'.
9  * Yes, they differ in signedness as well as size.
10  * Special cases can override it for themselves -- except for S390x, which
11  * is just a little too special for us. And MIPS, which I'm not touching
12  * with a 10' pole.
13  */
14 #ifndef __statfs_word
15 #if __BITS_PER_LONG == 64
16 #define __statfs_word long
17 #else
18 #define __statfs_word __u32
19 #endif
20 #endif
21 
22 struct statfs {
35 };
36 
37 /*
38  * ARM needs to avoid the 32-bit padding at the end, for consistency
39  * between EABI and OABI
40  */
41 #ifndef ARCH_PACK_STATFS64
42 #define ARCH_PACK_STATFS64
43 #endif
44 
45 struct statfs64 {
49  __u64 f_bfree;
51  __u64 f_files;
52  __u64 f_ffree;
59 
60 /*
61  * IA64 and x86_64 need to avoid the 32-bit padding at the end,
62  * to be compatible with the i386 ABI
63  */
64 #ifndef ARCH_PACK_COMPAT_STATFS64
65 #define ARCH_PACK_COMPAT_STATFS64
66 #endif
67 
68 struct compat_statfs64 {
69  __u32 f_type;
70  __u32 f_bsize;
72  __u64 f_bfree;
74  __u64 f_files;
75  __u64 f_ffree;
79  __u32 f_flags;
80  __u32 f_spare[4];
82 
83 #endif /* _UAPI_GENERIC_STATFS_H */