<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//en">
<!–Converted with LaTeX2HTML 2022 (Released January 1, 2022) –>
<HTML lang="en">
<HEAD>
<TITLE>Contents of Discstatus(kdevt dev)</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
<META NAME="Generator" CONTENT="LaTeX2HTML v2022">
<LINK REL="STYLESHEET" HREF="cdrom-st.css">
<LINK REL="next" HREF="node8_mn.html">
<LINK REL="previous" HREF="node6_mn.html">
<LINK REL="up" HREF="node2_mn.html">
<LINK REL="next" HREF="node8_mn.html">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#9944EE" vlink="#0000ff" alink="#00ff00">
<H2><A ID="SECTION00025000000000000000"></A>
<A ID="disc_status"></A>
<BR>
<!– MATH
Discstatus(kdevt dev)
–>
<I>Disc</I><SUB>s</SUB><I>tatus</I>(<I>kdev</I><SUB>t</SUB> <I>dev</I>)
</H2>
<P>
<TT>As a complement to <!– MATH
drivestatus()
–>
<I>drive</I><SUB>s</SUB><I>tatus</I>(), this function can provide the
general CD<SMALL>ROM</SMALL>-routines with information about the current disc that is
inserted in the drive represented by <I>dev</I>. 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:
</TT><P><!– MATH

$#$ & $/*$ #$*/$
CDSNOINFO &
noinformationavailable
CDSNODISC &
nodiscisinserted,
ortrayisopened
CDSAUDIO &
Audiodisc(2352
audiobytes/
frame)
CDSDATA1 &
datadisc,
mode1(2048
userbytes/
frame)
CDSDATA2 &
datadisc,
mode2(2336
userbytes/
frame)
CDSXA21 &
mixeddata(
XA),
mode2,
form1(2048
userbytes)
CDSXA22 &
mixeddata(
XA),
mode2,
form1(2324
userbytes)
–>
</P>
<DIV ALIGN="CENTER">
<IMG
STYLE="" SRC="img1.png"
ALT="
"># & /*#*/<IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>N</SUB><I>O</I><SUB>I</SUB><I>NFO</I> & <I>noinformationavailable</I><IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>N</SUB><I>O</I><SUB>D</SUB><I>ISC</I> & <I>nodiscisinserted</I>, <I>ortrayisopened</I><IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>A</SUB><I>UDIO</I> & <I>Audiodisc</I>(2352<I>audiobytes</I>/<I>frame</I>)<IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>D</SUB><I>ATA</I><SUB>1</SUB> & <I>datadisc</I>, <I>mode</I>1(2048<I>userbytes</I>/<I>frame</I>)<IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>D</SUB><I>ATA</I><SUB>2</SUB> & <I>datadisc</I>, <I>mode</I>2(2336<I>userbytes</I>/<I>frame</I>)<IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>X</SUB><I>A</I><SUB>21</SUB> & <I>mixeddata</I>(<I>XA</I>), <I>mode</I>2, <I>form</I>1(2048<I>userbytes</I>)<IMG
STYLE="" SRC="img2.png"
ALT="
"><I>CDS</I><SUB>X</SUB><I>A</I><SUB>22</SUB> & <I>mixeddata</I>(<I>XA</I>), <I>mode</I>2, <I>form</I>1(2324<I>userbytes</I>)<IMG
STYLE="" SRC="img2.png"
ALT="
">
</DIV><P></P><TT>
As far as I know, CD<SMALL>ROM</SMALL>s are always of type <!– MATH
CDSDATA1
–>
<I>CDS</I><SUB>D</SUB><I>ATA</I><SUB>1</SUB>. For
some information concerning frame layout of the various disc types, see
a recent version of <TT>cdrom.h</TT>.
</TT>
<P>
<HR>
</BODY>
</HTML>