diff options
Diffstat (limited to 'include/sys/dkio.h')
-rw-r--r-- | include/sys/dkio.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/sys/dkio.h b/include/sys/dkio.h index d8c700718..dd7a95f13 100644 --- a/include/sys/dkio.h +++ b/include/sys/dkio.h @@ -25,14 +25,16 @@ #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 */ |