Technical data

SunOS 5.5 Ioctl Requests cdio(7I)
NAME cdio CD-ROM control operations
SYNOPSIS #include <sys/cdio.h>
DESCRIPTION The set of ioctl(2) commands described below are used to perform audio and CD-ROM
specific operations. Basic to these cdio ioctl requests are the definitions in <sys/cdio.h>.
Several CD-ROM specific commands can report addresses either in LBA (Logical Block
Address) format or in MSF (Minute, Second, Frame) format. TheREAD HEADER, READ
SUBCHANNEL
, and READ TABLE OF CONTENTS commands have this feature.
LBA format represents the logical block address for the CD-ROM absolute address field or
for the offset from the beginning of the current track expressed as a number of logical
blocks in a CD-ROM track relative address field. MSF format represents the physical
address written on CD-ROM discs, expressed as a sector count relative to either the begin-
ning of the medium or the beginning of the current track.
IOCTLS The following I/O controls do not have any additional data passed into or received from
them.
CDROMSTART This ioctl() spins up the disc and seeks to the last address
requested.
CDROMSTOP This ioctl() spins down the disc.
CDROMPAUSE This ioctl() pauses the current audio play operation.
CDROMRESUME This ioctl() resumes the paused audio play operation.
CDROMEJECT This ioctl() ejects the caddy with the disc.
The following I/O controls require a pointer to the structure for that ioctl(), with data
being passed into the ioctl().
CDROMPLAYMSF This ioctl() command requests the drive to output the audio sig-
nals at the specified starting address and continue the audio play
until the specified ending address is detected. The address is in
MSF format. The third argument of this ioctl() call is a pointer to
the type struct cdrom_msf.
/
definition of play audio msf structure
/
struct cdrom_msf {
unsigned char cdmsf_min0; /starting minute/
unsigned char cdmsf_sec0; /starting second/
unsigned char cdmsf_frame0; /starting frame/
unsigned char cdmsf_min1; /ending minute /
unsigned char cdmsf_sec1; /ending second /
unsigned char cdmsf_frame1; /ending frame /
};
TheCDROMREADTOCENTRY ioctl request may be used to obtain
modified 26 Jan 1995 7I-53