]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/disk.h
xnu-3789.31.2.tar.gz
[apple/xnu.git] / bsd / sys / disk.h
index c75d1dae1378c61eb4ff6bdcee6565842fe56bcd..a365b5030a1c886f1ea475cbf684c71f1aa609e1 100644 (file)
@@ -76,6 +76,8 @@
  *
  * DKIOCGETPROVISIONSTATUS               get device's block provision status
  * DKIOCGETIOMINSATURATIONBYTECOUNT      get minimum byte count to saturate storage bandwidth
+ *
+ * DKIOCGETERRORDESCRIPTION              get description of any drive error
  */
 
 #define DK_FEATURE_BARRIER                    0x00000002
@@ -174,6 +176,15 @@ typedef struct
        dk_provision_extent_t * extents;        /* output:       provision extents */
 } dk_provision_status_t;
 
+typedef struct
+{
+       uint64_t               options;        /*               reserved, clear to zero */
+       uint64_t               reserved;       /*               reserved, clear to zero */
+       uint64_t               description_size;
+       char *                 description;
+} dk_error_description_t;
+
+
 #ifdef KERNEL
 #ifdef PRIVATE
 
@@ -219,6 +230,8 @@ typedef struct
 
 #define DKIOCGETPROVISIONSTATUS               _IOWR('d', 79, dk_provision_status_t)
 
+#define DKIOCGETERRORDESCRIPTION              _IOR('d', 80, dk_error_description_t)
+
 #define DKIOCSYNCHRONIZECACHE                 _IO('d', 22)
 
 #ifdef KERNEL