statfs.h 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASMARM_STATFS_H
  2. #define _ASMARM_STATFS_H
  3. #ifndef __KERNEL_STRICT_NAMES
  4. # include <linux/types.h>
  5. typedef __kernel_fsid_t fsid_t;
  6. #endif
  7. struct statfs {
  8. __u32 f_type;
  9. __u32 f_bsize;
  10. __u32 f_blocks;
  11. __u32 f_bfree;
  12. __u32 f_bavail;
  13. __u32 f_files;
  14. __u32 f_ffree;
  15. __kernel_fsid_t f_fsid;
  16. __u32 f_namelen;
  17. __u32 f_frsize;
  18. __u32 f_spare[5];
  19. };
  20. /*
  21. * With EABI there is 4 bytes of padding added to this structure.
  22. * Let's pack it so the padding goes away to simplify dual ABI support.
  23. * Note that user space does NOT have to pack this structure.
  24. */
  25. struct statfs64 {
  26. __u32 f_type;
  27. __u32 f_bsize;
  28. __u64 f_blocks;
  29. __u64 f_bfree;
  30. __u64 f_bavail;
  31. __u64 f_files;
  32. __u64 f_ffree;
  33. __kernel_fsid_t f_fsid;
  34. __u32 f_namelen;
  35. __u32 f_frsize;
  36. __u32 f_spare[5];
  37. } __attribute__ ((packed,aligned(4)));
  38. #endif