Technical data

SunOS 5.5 Ioctl Requests dkio(7I)
#define V_SWAP 0x03 /Swap filesystem /
#define V_USR 0x04 /Usr filesystem /
#define V_BACKUP 0x05 /full disk /
#define V_STAND 0x06 /Stand partition /
#define V_VAR 0x07 /Var partition /
#define V_HOME 0x08 /Home partition /
#define V_ALTSCTR 0x09 /Alternate sector partition /
DKIOCADDBAD
x86: This ioctl() forces the driver to re-examine the alternates slice and
rebuild the internalbad block map accordingly. It should be used
whenever the alternates slice is changed by any method other than the
addbadsec(1M) utility.
DKIOCEJECT This ioctl() requests the disk drive to eject its disk, if that drive supports
removable media.
DKIOCLOCK SPARC: This ioctl() requests the disk drive to lock the door, for those
devices with removable media.
DKIOCUNLOCK
SPARC: This ioctl() requests the disk drive to unlock the door, for those
devices with removable media.
DKIOCSTATE SPARC: This ioctl() blocks until the state of the drive, inserted or
ejected, is changed. The argument is a pointer to a dkio_state, enum,
whose possible enumerations are listed below. The initial value should
be either the last reported state of the drive, or DKIO_NONE. Upon
return, the enum pointed to by the argument is updated with the current
state of the drive.
enum dkio_state {
DKIO_NONE,/Return disk’s current state /
DKIO_EJECTED,/Disk state is ’ejected’ /
DKIO_INSERTED /Disk state is ’inserted’ /
};
SEE ALSO ioctl(2), cdio(7I), fdio(7I)
SPARC Only hdio(7I), ipi(7D), sd(7D), xd(7D), xy(7D)
x86 Only cmdk(7D)
modified 3 Mar 1995 7I-83