Technical data
SunOS 5.5 Ioctl Requests dkio(7I)
DKIOCG_PHYGEOM
x86: The argument is a pointer to a dk_geom structure (described
below). This ioctl() gets the driver’s notion of the physical geometry of
the disk drive. It is functionallyidentical to theDKIOCGGEOM ioctl( ).
DKIOCG_VIRTGEOM
x86: The argument is a pointer to a dk_geom structure (described
below). This ioctl() gets the controller’s (and hence the driver’s) notion
of the virtual geometry of the disk drive. Virtual geometry is a view of
the disk geometry maintained by the firmware in a host bus adapter or
disk controller.
/∗
∗ Definition of a disk’s geometry
∗/
struct dk_geom {
unsigned short dkg_ncyl; /∗ # of data ∗/
/∗ cylinders ∗/
unsigned short dkg_acyl; /∗ # of alternate∗/
/∗ cylinders ∗/
unsigned short dkg_bcyl; /∗ cyl offset (for ∗/
/∗ fixed head area) ∗/
unsigned short dkg_nhead; /∗ # of heads ∗/
unsigned short dkg_obs1; /∗ obsolete ∗/
unsigned short dkg_nsect; /∗ # of sectors ∗/
/∗ per track ∗/
unsigned short dkg_intrlv; /∗ interleave factor ∗/
unsigned short dkg_obs2; /∗ obsolete ∗/
unsigned short dkg_obs3; /∗ obsolete ∗/
unsigned short dkg_apc; /∗ alternates per∗/
/∗ cyl (SCSI only) ∗/
unsigned short dkg_rpm; /∗ revolutions per min∗/
unsigned short dkg_pcyl; /∗ # of physical ∗/
/∗ cylinders ∗/
unsigned short dkg_write_reinstruct; /∗ # sectors to ∗/
/∗ skip, writes ∗/
unsigned short dkg_read_reinstruct; /∗ # sectors to ∗/
/∗ skip, reads ∗/
unsigned short dkg_extra[7]; /∗ for compatible∗/
/∗ expansion ∗/
};
#define dkg_gap1 dkg_extra[0] /∗ for application ∗/
/∗ compatibility ∗/
#define dkg_gap2 dkg_extra[1] /∗ for application ∗/
/∗ compatibility ∗/
DKIOCGVTOC The argument is a pointer to a vtoc structure (described below). This
modified 3 Mar 1995 7I-81










