<!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&nbsp;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>&nbsp;<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

$\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$

–> </P> <DIV ALIGN="CENTER"> <IMG STYLE="" SRC="img1.png" ALT=" $\displaystyle \halign$">#&nbsp; &amp; /*#*/<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>N</SUB><I>O</I><SUB>I</SUB><I>NFO</I> &amp; <I>noinformationavailable</I><IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>N</SUB><I>O</I><SUB>D</SUB><I>ISC</I> &amp; <I>nodiscisinserted</I>, <I>ortrayisopened</I><IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>A</SUB><I>UDIO</I> &amp; <I>Audiodisc</I>(2352<I>audiobytes</I>/<I>frame</I>)<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>D</SUB><I>ATA</I><SUB>1</SUB> &amp; <I>datadisc</I>, <I>mode</I>1(2048<I>userbytes</I>/<I>frame</I>)<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>D</SUB><I>ATA</I><SUB>2</SUB> &amp; <I>datadisc</I>, <I>mode</I>2(2336<I>userbytes</I>/<I>frame</I>)<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>X</SUB><I>A</I><SUB>21</SUB> &amp; <I>mixeddata</I>(<I>XA</I>), <I>mode</I>2, <I>form</I>1(2048<I>userbytes</I>)<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"><I>CDS</I><SUB>X</SUB><I>A</I><SUB>22</SUB> &amp; <I>mixeddata</I>(<I>XA</I>), <I>mode</I>2, <I>form</I>1(2324<I>userbytes</I>)<IMG STYLE="" SRC="img2.png" ALT=" $\displaystyle \cr$"> </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>