sec_sysup.h 1.1 KB

12345678910111213141516171819202122232425
  1. #ifndef __SEC_SYSUP_H__
  2. #define __SEC_SYSUP_H__
  3. #define EDTBO_FIEMAP_MAGIC 0x00007763
  4. struct fiemap_extent_p {
  5. unsigned long fe_logical; /* logical offset in bytes for the start of the extent from the beginning of the file */
  6. unsigned long fe_physical; /* physical offset in bytes for the start of the extent from the beginning of the disk */
  7. unsigned long fe_length; /* length in bytes for this extent */
  8. unsigned long fe_reserved64[2];
  9. unsigned int fe_flags; /* FIEMAP_EXTENT_* flags for this extent */
  10. unsigned int fe_reserved[3];
  11. };
  12. struct fiemap_p {
  13. unsigned long fm_start; /* logical offset (inclusive) at which to start mapping (in) */
  14. unsigned long fm_length; /* logical length of mapping which userspace wants (in) */
  15. unsigned int fm_flags; /* FIEMAP_FLAG_* flags for request (in/out) */
  16. unsigned int fm_mapped_extents; /* number of extents that were mapped (out) */
  17. unsigned int fm_extent_count; /* size of fm_extents array (in) */
  18. unsigned int fm_reserved;
  19. struct fiemap_extent_p fm_extents[128]; /* array of mapped extents (out) */
  20. };
  21. #endif /* __SEC_SYSUP_H__ */