Discstatus(kdevt dev)

As a complement to drivestatus(), this function can provide the general CDROM-routines with information about the current disc that is inserted in the drive represented by dev. The history of development of the CD's use as a carrier medium for various digital information has lead to many different disc types, hence this function can return:

$\displaystyle \halign$$#$  & $/*$#$*/$$\displaystyle \cr$CDSNOINFO & noinformationavailable$\displaystyle \cr$CDSNODISC & nodiscisinserted, ortrayisopened$\displaystyle \cr$CDSAUDIO & Audiodisc(2352audiobytes/frame)$\displaystyle \cr$CDSDATA1 & datadisc, mode1(2048userbytes/frame)$\displaystyle \cr$CDSDATA2 & datadisc, mode2(2336userbytes/frame)$\displaystyle \cr$CDSXA21 & mixeddata(XA), mode2, form1(2048userbytes)$\displaystyle \cr$CDSXA22 & mixeddata(XA), mode2, form1(2324userbytes)$\displaystyle \cr$

As far as I know, CDROMs are always of type CDSDATA1. For some information concerning frame layout of the various disc types, see a recent version of cdrom.h.