]> git.proxmox.com Git - mirror_spl-debian.git/blobdiff - include/sys/dkio.h
New upstream version 0.7.2
[mirror_spl-debian.git] / include / sys / dkio.h
index d8c700718ff1fd19964859f59c06575dfea15b29..dd7a95f137b9920f0dde39622fa3bf237efe9dd2 100644 (file)
 #ifndef _SPL_DKIO_H
 #define        _SPL_DKIO_H
 
-struct dk_callback {
-       void (*dkc_callback)(void *dkc_cookie, int error);
-       void *dkc_cookie;
-       int dkc_flag;
-};
+#define        DFL_SZ(num_exts) \
+       (sizeof (dkioc_free_list_t) + (num_exts - 1) * 16)
 
-#define        DKIOC                   (0x04 << 8)
-#define        DKIOCFLUSHWRITECACHE    (DKIOC | 34)
-#define        DKIOCTRIM               (DKIOC | 35)
+#define        DKIOC           (0x04 << 8)
+#define        DKIOCFLUSHWRITECACHE    (DKIOC|34)      /* flush cache to phys medium */
+
+/*
+ * ioctl to free space (e.g. SCSI UNMAP) off a disk.
+ * Pass a dkioc_free_list_t containing a list of extents to be freed.
+ */
+#define        DKIOCFREE       (DKIOC|50)
 
 #endif /* _SPL_DKIO_H */