Technical data
dkio(7I) Ioctl Requests SunOS 5.5
NAME dkio − disk control operations
SYNOPSIS #include <sys/dkio.h>
#include <sys/vtoc.h>
DESCRIPTION Disk drivers support a set of ioctl(2) requests for disk controller, geometry, and partition
information. Basic to these ioctl() requests are the definitions in <sys/dkio.h>.
IOCTLS The following ioctl() requests set and/or retrieve the current disk controller, partitions,
or geometry information:
DKIOCINFO The argument is a pointer to a dk_cinfo structure (described below).
This structure tells the type of the controller and attributes about how
bad-block processing is done on the controller.
/∗
∗ Structures and definitions for disk I/O control commands
∗/
#define DK_DEVLEN 16 /∗ device name max length, ∗/
/∗ including unit # and NULL ∗/
/∗
∗ Used for controller info
∗/
struct dk_cinfo {
char dki_cname[DK_DEVLEN]; /∗ controller name (no unit #)∗/
u_short dki_ctype; /∗ controller type ∗/
u_short dki_flags; /∗ flags ∗/
u_short dki_cnum; /∗ controller number ∗/
u_int dki_addr; /∗ controller address ∗/
u_int dki_space; /∗ controller bus type ∗/
u_int dki_prio; /∗ interrupt priority ∗/
u_int dki_vec; /∗ interrupt vector ∗/
char dki_dname[DK_DEVLEN]; /∗ drive name (no unit #) ∗/
u_int dki_unit; /∗ unit number ∗/
u_int dki_slave; /∗ slave number ∗/
u_short dki_partition; /∗ partition number ∗/
u_short dki_maxtransfer; /∗ maximum transfer size ∗/
/∗ in DEV_BSIZE ∗/
};
/∗
∗ Controller types
∗/
#define DKC_UNKNOWN 0
#define DKC_CDROM 1/∗CD-ROM, SCSI or
otherwise ∗/
7I-78 modified 3 Mar 1995










