DKIOC
#define DKIOCGGEOM (DKIOC|1) /* Get geometry */
#define DKIOCINFO (DKIOC|3) /* Get info */
#define DKIOCEJECT (DKIOC|6) /* Generic 'eject' */
#define DKIOCGVTOC (DKIOC|11) /* Get VTOC */
#define DKIOCSVTOC (DKIOC|12) /* Set VTOC & Write to Disk */
#define DKIOCGEXTVTOC (DKIOC|23) /* Get extended VTOC */
#define DKIOCSEXTVTOC (DKIOC|24) /* Set extended VTOC, Write to Disk */
#define DKIOCFLUSHWRITECACHE (DKIOC|34) /* flush cache to phys medium */
#define DKIOCGETWCE (DKIOC|36) /* Get current write cache */
#define DKIOCSETWCE (DKIOC|37) /* Enable/Disable write cache */
#define DKIOCSGEOM (DKIOC|2) /* Set geometry */
#define DKIOCSAPART (DKIOC|4) /* Set all partitions */
#define DKIOCGAPART (DKIOC|5) /* Get all partitions */
#define DKIOCG_PHYGEOM (DKIOC|32) /* get physical geometry */
#define DKIOCG_VIRTGEOM (DKIOC|33) /* get virtual geometry */
#define DKIOCLOCK (DKIOC|7) /* Generic 'lock' */
#define DKIOCUNLOCK (DKIOC|8) /* Generic 'unlock' */
#define DKIOCSTATE (DKIOC|13) /* Inquire insert/eject state */
#define DKIOCREMOVABLE (DKIOC|16) /* is media removable */
#define DKIOCHOTPLUGGABLE (DKIOC|35) /* is hotpluggable */
#define DKIOCSETEXTPART (DKIOC|46)
#define DKIOCSOLIDSTATE (DKIOC|38)
#define DKIOCADDBAD (DKIOC|20) /* Re-read the alternate map (IDE) */
#define DKIOCGETDEF (DKIOC|21) /* read defect list (IDE) */
#define DKIOCPARTINFO (DKIOC|22) /* Get partition or slice parameters */
#define DKIOCEXTPARTINFO (DKIOC|19) /* Get extended partition or slice */
#define DKIOC_EBP_ENABLE (DKIOC|40) /* enable by pass erase on write */
#define DKIOC_EBP_DISABLE (DKIOC|41) /* disable by pass erase on write */
#define DKIOCGMEDIAINFO (DKIOC|42) /* get information about the media */
#define DKIOCGMBOOT (DKIOC|43) /* get mboot info */
#define DKIOCSMBOOT (DKIOC|44) /* set mboot info */
#define DKIOCGTEMPERATURE (DKIOC|45) /* get temperature */
#define DKIOCGMEDIAINFOEXT (DKIOC|48)
#define DKIOCREADONLY (DKIOC|49)
#define DKIOCSETEFI (DKIOC|17) /* Set EFI info */
#define DKIOCGETEFI (DKIOC|18) /* Get EFI info */
#define DKIOCPARTITION (DKIOC|9) /* Get partition info */
#define DKIOCGETVOLCAP (DKIOC | 25) /* Get volume capabilities */
#define DKIOCSETVOLCAP (DKIOC | 26) /* Set volume capabilities */
#define DKIOCDMR (DKIOC | 27) /* Issue a directed read */
#define DKIOCDUMPINIT (DKIOC | 28) /* Dumpify a zvol */
#define DKIOCDUMPFINI (DKIOC | 29) /* Un-Dumpify a zvol */
#define DKIOC_GETDISKID (DKIOC|46)
#define DKIOC_UPDATEFW (DKIOC|47)
#define DKIOCFREE (DKIOC|50)
#define DKIOC_CANFREE (DKIOC|60)
#define DKIOCRESET (DKIOC|14)
#define DKIOCABORT (DKIOC|15)
#define DKIOCRESET (DKIOC|14)
#define DKIOCABORT (DKIOC|15)