sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget-/translations/zh_CN/userspace-api/ioctl/cdrommodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/zh_TW/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/it_IT/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/ja_JP/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/ko_KR/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/pt_BR/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/sp_SP/userspace-api/ioctl/cdrommodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hSummary of CDROM ioctl callsh]hSummary of CDROM ioctl calls}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhG/var/lib/git/docbuild/linux/Documentation/userspace-api/ioctl/cdrom.rsthKubh bullet_list)}(hhh]h list_item)}(h"Edward A. Falk h]h paragraph)}(h!Edward A. Falk h](hEdward A. Falk <}(hhhhhNhNubh reference)}(hefalk@google.comh]hefalk@google.com}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:efalk@google.comuh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubah}(h]h ]h"]h$]h&]bullet-uh1hhhhKhhhhubh)}(hNovember, 2004h]hNovember, 2004}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hThis document attempts to describe the ioctl(2) calls supported by the CDROM layer. These are by-and-large implemented (as of Linux 2.6) in drivers/cdrom/cdrom.c and drivers/block/scsi_ioctl.ch]hThis document attempts to describe the ioctl(2) calls supported by the CDROM layer. These are by-and-large implemented (as of Linux 2.6) in drivers/cdrom/cdrom.c and drivers/block/scsi_ioctl.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hUioctl values are listed in . As of this writing, they are as follows:h]hUioctl values are listed in . As of this writing, they are as follows:}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh block_quote)}(hX* ======================== =============================================== CDROMPAUSE Pause Audio Operation CDROMRESUME Resume paused Audio Operation CDROMPLAYMSF Play Audio MSF (struct cdrom_msf) CDROMPLAYTRKIND Play Audio Track/index (struct cdrom_ti) CDROMREADTOCHDR Read TOC header (struct cdrom_tochdr) CDROMREADTOCENTRY Read TOC entry (struct cdrom_tocentry) CDROMSTOP Stop the cdrom drive CDROMSTART Start the cdrom drive CDROMEJECT Ejects the cdrom media CDROMVOLCTRL Control output volume (struct cdrom_volctrl) CDROMSUBCHNL Read subchannel data (struct cdrom_subchnl) CDROMREADMODE2 Read CDROM mode 2 data (2336 Bytes) (struct cdrom_read) CDROMREADMODE1 Read CDROM mode 1 data (2048 Bytes) (struct cdrom_read) CDROMREADAUDIO (struct cdrom_read_audio) CDROMEJECT_SW enable(1)/disable(0) auto-ejecting CDROMMULTISESSION Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession) CDROM_GET_MCN Obtain the "Universal Product Code" if available (struct cdrom_mcn) CDROM_GET_UPC Deprecated, use CDROM_GET_MCN instead. CDROMRESET hard-reset the drive CDROMVOLREAD Get the drive's volume setting (struct cdrom_volctrl) CDROMREADRAW read data in raw mode (2352 Bytes) (struct cdrom_read) CDROMREADCOOKED read data in cooked mode CDROMSEEK seek msf address CDROMPLAYBLK scsi-cd only, (struct cdrom_blk) CDROMREADALL read all 2646 bytes CDROMGETSPINDOWN return 4-bit spindown value CDROMSETSPINDOWN set 4-bit spindown value CDROMCLOSETRAY pendant of CDROMEJECT CDROM_SET_OPTIONS Set behavior options CDROM_CLEAR_OPTIONS Clear behavior options CDROM_SELECT_SPEED Set the CD-ROM speed CDROM_SELECT_DISC Select disc (for juke-boxes) CDROM_MEDIA_CHANGED Check is media changed CDROM_TIMED_MEDIA_CHANGE Check if media changed since given time (struct cdrom_timed_media_change_info) CDROM_DRIVE_STATUS Get tray position, etc. CDROM_DISC_STATUS Get disc type, etc. CDROM_CHANGER_NSLOTS Get number of slots CDROM_LOCKDOOR lock or unlock door CDROM_DEBUG Turn debug messages on/off CDROM_GET_CAPABILITY get capabilities CDROMAUDIOBUFSIZ set the audio buffer size DVD_READ_STRUCT Read structure DVD_WRITE_STRUCT Write structure DVD_AUTH Authentication CDROM_SEND_PACKET send a packet to the drive CDROM_NEXT_WRITABLE get next writable block CDROM_LAST_WRITTEN get last block written on disc ======================== =============================================== h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhjAubjE)}(hhh]h}(h]h ]h"]h$]h&]colwidthK/uh1jDhjAubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h CDROMPAUSEh]h CDROMPAUSE}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1jdhjaubje)}(hhh]h)}(hPause Audio Operationh]hPause Audio Operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}ubah}(h]h ]h"]h$]h&]uh1jdhjaubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMRESUMEh]h CDROMRESUME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hResume paused Audio Operationh]hResume paused Audio Operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMPLAYMSFh]h CDROMPLAYMSF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h!Play Audio MSF (struct cdrom_msf)h]h!Play Audio MSF (struct cdrom_msf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMPLAYTRKINDh]hCDROMPLAYTRKIND}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h(Play Audio Track/index (struct cdrom_ti)h]h(Play Audio Track/index (struct cdrom_ti)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj"ubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADTOCHDRh]hCDROMREADTOCHDR}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjBubah}(h]h ]h"]h$]h&]uh1jdhj?ubje)}(hhh]h)}(h%Read TOC header (struct cdrom_tochdr)h]h%Read TOC header (struct cdrom_tochdr)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjYubah}(h]h ]h"]h$]h&]uh1jdhj?ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADTOCENTRYh]hCDROMREADTOCENTRY}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjyubah}(h]h ]h"]h$]h&]uh1jdhjvubje)}(hhh]h)}(h&Read TOC entry (struct cdrom_tocentry)h]h&Read TOC entry (struct cdrom_tocentry)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjvubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMSTOPh]h CDROMSTOP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hStop the cdrom driveh]hStop the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMSTARTh]h CDROMSTART}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hStart the cdrom driveh]hStart the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMEJECTh]h CDROMEJECT}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hEjects the cdrom mediah]hEjects the cdrom media}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj5ubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMVOLCTRLh]h CDROMVOLCTRL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjUubah}(h]h ]h"]h$]h&]uh1jdhjRubje)}(hhh]h)}(h,Control output volume (struct cdrom_volctrl)h]h,Control output volume (struct cdrom_volctrl)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjlubah}(h]h ]h"]h$]h&]uh1jdhjRubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMSUBCHNLh]h CDROMSUBCHNL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h+Read subchannel data (struct cdrom_subchnl)h]h+Read subchannel data (struct cdrom_subchnl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADMODE2h]hCDROMREADMODE2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h7Read CDROM mode 2 data (2336 Bytes) (struct cdrom_read)h]h7Read CDROM mode 2 data (2336 Bytes) (struct cdrom_read)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADMODE1h]hCDROMREADMODE1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h7Read CDROM mode 1 data (2048 Bytes) (struct cdrom_read)h]h7Read CDROM mode 1 data (2048 Bytes) (struct cdrom_read)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADAUDIOh]hCDROMREADAUDIO}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj1ubah}(h]h ]h"]h$]h&]uh1jdhj.ubje)}(hhh]h)}(h(struct cdrom_read_audio)h]h(struct cdrom_read_audio)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjHubah}(h]h ]h"]h$]h&]uh1jdhj.ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMEJECT_SWh]h CDROMEJECT_SW}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjhubah}(h]h ]h"]h$]h&]uh1jdhjeubje)}(hhh]h)}(h"enable(1)/disable(0) auto-ejectingh]h"enable(1)/disable(0) auto-ejecting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jdhjeubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMMULTISESSIONh]hCDROMMULTISESSION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h[Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession)h]h[Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROM_GET_MCNh]h CDROM_GET_MCN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hCObtain the "Universal Product Code" if available (struct cdrom_mcn)h]hGObtain the “Universal Product Code” if available (struct cdrom_mcn)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROM_GET_UPCh]h CDROM_GET_UPC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(h&Deprecated, use CDROM_GET_MCN instead.h]h&Deprecated, use CDROM_GET_MCN instead.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj$ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMRESETh]h CDROMRESET}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjDubah}(h]h ]h"]h$]h&]uh1jdhjAubje)}(hhh]h)}(hhard-reset the driveh]hhard-reset the drive}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj[ubah}(h]h ]h"]h$]h&]uh1jdhjAubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMVOLREADh]h CDROMVOLREAD}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hj{ubah}(h]h ]h"]h$]h&]uh1jdhjxubje)}(hhh]h)}(h5Get the drive's volume setting (struct cdrom_volctrl)h]h7Get the drive’s volume setting (struct cdrom_volctrl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jdhjxubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMREADRAWh]h CDROMREADRAW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(h6read data in raw mode (2352 Bytes) (struct cdrom_read)h]h6read data in raw mode (2352 Bytes) (struct cdrom_read)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMREADCOOKEDh]hCDROMREADCOOKED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hread data in cooked modeh]hread data in cooked mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMSEEKh]h CDROMSEEK}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hj ubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hseek msf addressh]hseek msf address}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hj7ubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMPLAYBLKh]h CDROMPLAYBLK}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjWubah}(h]h ]h"]h$]h&]uh1jdhjTubje)}(hhh]h)}(h scsi-cd only, (struct cdrom_blk)h]h scsi-cd only, (struct cdrom_blk)}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjnubah}(h]h ]h"]h$]h&]uh1jdhjTubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROMREADALLh]h CDROMREADALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hread all 2646 bytesh]hread all 2646 bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMGETSPINDOWNh]hCDROMGETSPINDOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hreturn 4-bit spindown valueh]hreturn 4-bit spindown value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMSETSPINDOWNh]hCDROMSETSPINDOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hset 4-bit spindown valueh]hset 4-bit spindown value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMCLOSETRAYh]hCDROMCLOSETRAY}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hj3ubah}(h]h ]h"]h$]h&]uh1jdhj0ubje)}(hhh]h)}(hpendant of CDROMEJECTh]hpendant of CDROMEJECT}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjJubah}(h]h ]h"]h$]h&]uh1jdhj0ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_SET_OPTIONSh]hCDROM_SET_OPTIONS}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjjubah}(h]h ]h"]h$]h&]uh1jdhjgubje)}(hhh]h)}(hSet behavior optionsh]hSet behavior options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjubah}(h]h ]h"]h$]h&]uh1jdhjgubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_CLEAR_OPTIONSh]hCDROM_CLEAR_OPTIONS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hClear behavior optionsh]hClear behavior options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_SELECT_SPEEDh]hCDROM_SELECT_SPEED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jdhjubje)}(hhh]h)}(hSet the CD-ROM speedh]hSet the CD-ROM speed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jdhjubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_SELECT_DISCh]hCDROM_SELECT_DISC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hSelect disc (for juke-boxes)h]hSelect disc (for juke-boxes)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hj&ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_MEDIA_CHANGEDh]hCDROM_MEDIA_CHANGED}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjFubah}(h]h ]h"]h$]h&]uh1jdhjCubje)}(hhh]h)}(hCheck is media changedh]hCheck is media changed}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hj]ubah}(h]h ]h"]h$]h&]uh1jdhjCubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_TIMED_MEDIA_CHANGEh]hCDROM_TIMED_MEDIA_CHANGE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hj}ubah}(h]h ]h"]h$]h&]uh1jdhjzubje)}(hhh]h)}(hNCheck if media changed since given time (struct cdrom_timed_media_change_info)h]hNCheck if media changed since given time (struct cdrom_timed_media_change_info)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubah}(h]h ]h"]h$]h&]uh1jdhjzubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_DRIVE_STATUSh]hCDROM_DRIVE_STATUS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj" ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hGet number of slotsh]hGet number of slots}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hj9 ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_LOCKDOORh]hCDROM_LOCKDOOR}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjY ubah}(h]h ]h"]h$]h&]uh1jdhjV ubje)}(hhh]h)}(hlock or unlock doorh]hlock or unlock door}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjp ubah}(h]h ]h"]h$]h&]uh1jdhjV ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(h CDROM_DEBUGh]h CDROM_DEBUG}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hTurn debug messages on/offh]hTurn debug messages on/off}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hj ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_GET_CAPABILITYh]hCDROM_GET_CAPABILITY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hget capabilitiesh]hget capabilities}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROMAUDIOBUFSIZh]hCDROMAUDIOBUFSIZ}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hset the audio buffer sizeh]hset the audio buffer size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hDVD_READ_STRUCTh]hDVD_READ_STRUCT}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChj5 ubah}(h]h ]h"]h$]h&]uh1jdhj2 ubje)}(hhh]h)}(hRead structureh]hRead structure}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChjL ubah}(h]h ]h"]h$]h&]uh1jdhj2 ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hDVD_WRITE_STRUCTh]hDVD_WRITE_STRUCT}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjl ubah}(h]h ]h"]h$]h&]uh1jdhji ubje)}(hhh]h)}(hWrite structureh]hWrite structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhj ubah}(h]h ]h"]h$]h&]uh1jdhji ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hDVD_AUTHh]hDVD_AUTH}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hAuthenticationh]hAuthentication}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_SEND_PACKETh]hCDROM_SEND_PACKET}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hsend a packet to the driveh]hsend a packet to the drive}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_NEXT_WRITABLEh]hCDROM_NEXT_WRITABLE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhj ubah}(h]h ]h"]h$]h&]uh1jdhj ubje)}(hhh]h)}(hget next writable blockh]hget next writable block}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhj( ubah}(h]h ]h"]h$]h&]uh1jdhj ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubj`)}(hhh](je)}(hhh]h)}(hCDROM_LAST_WRITTENh]hCDROM_LAST_WRITTEN}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjH ubah}(h]h ]h"]h$]h&]uh1jdhjE ubje)}(hhh]h)}(hget last block written on disch]hget last block written on disc}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhj_ ubah}(h]h ]h"]h$]h&]uh1jdhjE ubeh}(h]h ]h"]h$]h&]uh1j_hj\ubeh}(h]h ]h"]h$]h&]uh1jZhjAubeh}(h]h ]h"]h$]h&]colsKuh1j?hj<ubah}(h]h ]h"]h$]h&]uh1j:hj6ubah}(h]h ]h"]h$]h&]uh1j4hhhKhhhhubh)}(hThe information that follows was determined from reading kernel source code. It is likely that some corrections will be made over time.h]hThe information that follows was determined from reading kernel source code. It is likely that some corrections will be made over time.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhhhhubh transition)}(hN------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1j hhhKOhhhhubh)}(hGeneral:h]hGeneral:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKQhhhhubj5)}(hXUnless otherwise specified, all ioctl calls return 0 on success and -1 with errno set to an appropriate value on error. (Some ioctls return non-negative data values.) Unless otherwise specified, all ioctl calls return -1 and set errno to EFAULT on a failed attempt to copy data to or from user address space. Individual drivers may return error codes not listed here. Unless otherwise specified, all data structures and constants are defined in h](h)}(hUnless otherwise specified, all ioctl calls return 0 on success and -1 with errno set to an appropriate value on error. (Some ioctls return non-negative data values.)h]hUnless otherwise specified, all ioctl calls return 0 on success and -1 with errno set to an appropriate value on error. (Some ioctls return non-negative data values.)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKShj ubh)}(hUnless otherwise specified, all ioctl calls return -1 and set errno to EFAULT on a failed attempt to copy data to or from user address space.h]hUnless otherwise specified, all ioctl calls return -1 and set errno to EFAULT on a failed attempt to copy data to or from user address space.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhj ubh)}(h:Individual drivers may return error codes not listed here.h]h:Individual drivers may return error codes not listed here.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hj ubh)}(h\Unless otherwise specified, all data structures and constants are defined in h]h\Unless otherwise specified, all data structures and constants are defined in }(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hj ubeh}(h]h ]h"]h$]h&]uh1j4hhhKShhhhubj )}(hN------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1j hhhK`hhhhubhdefinition_list)}(hhh](hdefinition_list_item)}(hCDROMPAUSE Pause Audio Operation usage:: ioctl(fd, CDROMPAUSE, 0); inputs: none outputs: none error return: - ENOSYS cd drive not audio-capable. h](hterm)}(h CDROMPAUSEh]h CDROMPAUSE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKvhj ubh definition)}(hhh](h)}(hPause Audio Operationh]hPause Audio Operation}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhj& ubh)}(husage::h]husage:}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghj& ubh literal_block)}(hioctl(fd, CDROMPAUSE, 0);h]hioctl(fd, CDROMPAUSE, 0);}hjG sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1jE hhhKihj& ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKnhjZ ubj% )}(hhh]h)}(hnoneh]hnone}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhjl ubah}(h]h ]h"]h$]h&]uh1j$ hjZ ubeh}(h]h ]h"]h$]h&]uh1j hhhKnhjW ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKrhj ubj% )}(hhh]h)}(hnoneh]hnone}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhj ubah}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKrhjW ubj )}(h9error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKvhj ubj% )}(hhh]h)}(hhh]h)}(h)ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKuhj ubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]jj uh1hhhhKuhj ubah}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKvhjW ubeh}(h]h ]h"]h$]h&]uh1j hj& ubeh}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKvhj ubj )}(hCDROMRESUME Resume paused Audio Operation usage:: ioctl(fd, CDROMRESUME, 0); inputs: none outputs: none error return: - ENOSYS cd drive not audio-capable. h](j )}(h CDROMRESUMEh]h CDROMRESUME}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj ubj% )}(hhh](h)}(hResume paused Audio Operationh]hResume paused Audio Operation}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhj ubh)}(husage::h]husage:}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hj ubjF )}(hioctl(fd, CDROMRESUME, 0);h]hioctl(fd, CDROMRESUME, 0);}hj= sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhK~hj ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjN ubj% )}(hhh]h)}(hnoneh]hnone}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj` ubah}(h]h ]h"]h$]h&]uh1j$ hjN ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjK ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj} ubj% )}(hhh]h)}(hnoneh]hnone}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j$ hj} ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjK ubj )}(h9error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj ubj% )}(hhh]h)}(hhh]h)}(h)ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]jj uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjK ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj hhubj )}(hXCDROMPLAYMSF Play Audio MSF (struct cdrom_msf) usage:: struct cdrom_msf msf; ioctl(fd, CDROMPLAYMSF, &msf); inputs: cdrom_msf structure, describing a segment of music to play outputs: none error return: - ENOSYS cd drive not audio-capable. notes: - MSF stands for minutes-seconds-frames - LBA stands for logical block address - Segment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second. h](j )}(h CDROMPLAYMSFh]h CDROMPLAYMSF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh](h)}(hPlay Audio MSFh]hPlay Audio MSF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h(struct cdrom_msf)h]h(struct cdrom_msf)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(husage::h]husage:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjF )}(h5struct cdrom_msf msf; ioctl(fd, CDROMPLAYMSF, &msf);h]h5struct cdrom_msf msf; ioctl(fd, CDROMPLAYMSF, &msf);}hj?sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhKhjubj )}(hhh](j )}(hDinputs: cdrom_msf structure, describing a segment of music to play h](j )}(hinputs:h]hinputs:}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjPubj% )}(hhh]h)}(h:cdrom_msf structure, describing a segment of music to playh]h:cdrom_msf structure, describing a segment of music to play}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjbubah}(h]h ]h"]h$]h&]uh1j$ hjPubeh}(h]h ]h"]h$]h&]uh1j hhhKhjMubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjMubj )}(h8error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hhh]h)}(h(ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]jj uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjMubj )}(hnotes: - MSF stands for minutes-seconds-frames - LBA stands for logical block address - Segment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second. h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hhh](h)}(h%MSF stands for minutes-seconds-framesh]h)}(hj h]h%MSF stands for minutes-seconds-frames}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h$LBA stands for logical block addressh]h)}(hj!h]h$LBA stands for logical block address}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hSegment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second. h]h)}(hSegment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second.h]hSegment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]jj uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjMubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhj hhubj )}(hXCDROMPLAYTRKIND Play Audio Track/index (struct cdrom_ti) usage:: struct cdrom_ti ti; ioctl(fd, CDROMPLAYTRKIND, &ti); inputs: cdrom_ti structure, describing a segment of music to play outputs: none error return: - ENOSYS cd drive not audio-capable. notes: - Segment is described as start and end times, where each time is described as a track and an index. h](j )}(hCDROMPLAYTRKINDh]hCDROMPLAYTRKIND}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjrubj% )}(hhh](h)}(hPlay Audio Track/indexh]hPlay Audio Track/index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h(struct cdrom_ti)h]h(struct cdrom_ti)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjF )}(h5struct cdrom_ti ti; ioctl(fd, CDROMPLAYTRKIND, &ti);h]h5struct cdrom_ti ti; ioctl(fd, CDROMPLAYTRKIND, &ti);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhKhjubj )}(hhh](j )}(hCinputs: cdrom_ti structure, describing a segment of music to play h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(h9cdrom_ti structure, describing a segment of music to playh]h9cdrom_ti structure, describing a segment of music to play}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(h8error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj ubj% )}(hhh]h)}(hhh]h)}(h(ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]jj uh1hhhhKhj2ubah}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(hpnotes: - Segment is described as start and end times, where each time is described as a track and an index. h](j )}(hnotes:h]hnotes:}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjbubj% )}(hhh]h)}(hhh]h)}(heSegment is described as start and end times, where each time is described as a track and an index. h]h)}(hbSegment is described as start and end times, where each time is described as a track and an index.h]hbSegment is described as start and end times, where each time is described as a track and an index.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjzubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]jj uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1j$ hjbubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjrubeh}(h]h ]h"]h$]h&]uh1j hhhKhj hhubj )}(hXCDROMREADTOCHDR Read TOC header (struct cdrom_tochdr) usage:: cdrom_tochdr header; ioctl(fd, CDROMREADTOCHDR, &header); inputs: cdrom_tochdr structure outputs: cdrom_tochdr structure error return: - ENOSYS cd drive not audio-capable. h](j )}(hCDROMREADTOCHDRh]hCDROMREADTOCHDR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh](h)}(hRead TOC headerh]hRead TOC header}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h(struct cdrom_tochdr)h]h(struct cdrom_tochdr)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjF )}(h:cdrom_tochdr header; ioctl(fd, CDROMREADTOCHDR, &header);h]h:cdrom_tochdr header; ioctl(fd, CDROMREADTOCHDR, &header);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhKhjubj )}(hhh](j )}(h inputs: cdrom_tochdr structure h](j )}(hinputs:h]hinputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hcdrom_tochdr structureh]hcdrom_tochdr structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(h!outputs: cdrom_tochdr structure h](j )}(houtputs:h]houtputs:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj5ubj% )}(hhh]h)}(hcdrom_tochdr structureh]hcdrom_tochdr structure}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjGubah}(h]h ]h"]h$]h&]uh1j$ hj5ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(h:error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjdubj% )}(hhh]h)}(hhh]h)}(h*ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj|ubah}(h]h ]h"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]jj uh1hhhhKhjvubah}(h]h ]h"]h$]h&]uh1j$ hjdubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhj hhubj )}(hXDCDROMREADTOCENTRY Read TOC entry (struct cdrom_tocentry) usage:: struct cdrom_tocentry entry; ioctl(fd, CDROMREADTOCENTRY, &entry); inputs: cdrom_tocentry structure outputs: cdrom_tocentry structure error return: - ENOSYS cd drive not audio-capable. - EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBA - EINVAL requested track out of bounds - EIO I/O error reading TOC notes: - TOC stands for Table Of Contents - MSF stands for minutes-seconds-frames - LBA stands for logical block address h](j )}(hCDROMREADTOCENTRYh]hCDROMREADTOCENTRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh](h)}(hRead TOC entryh]hRead TOC entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h(struct cdrom_tocentry)h]h(struct cdrom_tocentry)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjF )}(hCstruct cdrom_tocentry entry; ioctl(fd, CDROMREADTOCENTRY, &entry);h]hCstruct cdrom_tocentry entry; ioctl(fd, CDROMREADTOCENTRY, &entry);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhKhjubj )}(hhh](j )}(h"inputs: cdrom_tocentry structure h](j )}(hinputs:h]hinputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj% )}(hhh]h)}(hcdrom_tocentry structureh]hcdrom_tocentry structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(h#outputs: cdrom_tocentry structure h](j )}(houtputs:h]houtputs:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj7ubj% )}(hhh]h)}(hcdrom_tocentry structureh]hcdrom_tocentry structure}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIubah}(h]h ]h"]h$]h&]uh1j$ hj7ubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(herror return: - ENOSYS cd drive not audio-capable. - EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBA - EINVAL requested track out of bounds - EIO I/O error reading TOC h](j )}(h error return:h]h error return:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjfubj% )}(hhh]h)}(hhh](h)}(h'ENOSYS cd drive not audio-capable.h]h)}(hjh]h'ENOSYS cd drive not audio-capable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubah}(h]h ]h"]h$]h&]uh1hhj{ubh)}(h8EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBAh]h)}(hjh]h8EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj{ubh)}(h)EINVAL requested track out of boundsh]h)}(hjh]h)EINVAL requested track out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj{ubh)}(h"EIO I/O error reading TOC h]h)}(h!EIO I/O error reading TOCh]h!EIO I/O error reading TOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]jj uh1hhhhKhjxubah}(h]h ]h"]h$]h&]uh1j$ hjfubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(h{notes: - TOC stands for Table Of Contents - MSF stands for minutes-seconds-frames - LBA stands for logical block address h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hhh](h)}(h TOC stands for Table Of Contentsh]h)}(hjh]h TOC stands for Table Of Contents}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h%MSF stands for minutes-seconds-framesh]h)}(hjh]h%MSF stands for minutes-seconds-frames}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h'LBA stands for logical block address h]h)}(h$LBA stands for logical block addressh]h$LBA stands for logical block address}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj3ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]jj uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hX!CDROMSTOP Stop the cdrom drive usage:: ioctl(fd, CDROMSTOP, 0); inputs: none outputs: none error return: - ENOSYS cd drive not audio-capable. notes: - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive down. h](j )}(h CDROMSTOPh]h CDROMSTOP}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjoubj% )}(hhh](h)}(hStop the cdrom driveh]hStop the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjF )}(hioctl(fd, CDROMSTOP, 0);h]hioctl(fd, CDROMSTOP, 0);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM hjubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(h8error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hhh]h)}(h(ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj!ubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(hlnotes: - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive down. h](j )}(hnotes:h]hnotes:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjQubj% )}(hhh]h)}(hhh]h)}(haExact interpretation of this ioctl depends on the device, but most seem to spin the drive down. h]h)}(h_Exact interpretation of this ioctl depends on the device, but most seem to spin the drive down.h]h_Exact interpretation of this ioctl depends on the device, but most seem to spin the drive down.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiubah}(h]h ]h"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]jj uh1hhhhMhjcubah}(h]h ]h"]h$]h&]uh1j$ hjQubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjoubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXgCDROMSTART Start the cdrom drive usage:: ioctl(fd, CDROMSTART, 0); inputs: none outputs: none error return: - ENOSYS cd drive not audio-capable. notes: - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely. h](j )}(h CDROMSTARTh]h CDROMSTART}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM4hjubj% )}(hhh](h)}(hStart the cdrom driveh]hStart the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubjF )}(hioctl(fd, CDROMSTART, 0);h]hioctl(fd, CDROMSTART, 0);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM"hjubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM'hjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM'hjubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM+hjubj% )}(hhh]h)}(hnoneh]hnone}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hj(ubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM+hjubj )}(h8error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM.hjEubj% )}(hhh]h)}(hhh]h)}(h(ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj]ubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]jj uh1hhhhM.hjWubah}(h]h ]h"]h$]h&]uh1j$ hjEubeh}(h]h ]h"]h$]h&]uh1j hhhM.hjubj )}(hnotes: - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely. h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM4hjubj% )}(hhh]h)}(hhh]h)}(hExact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely. h]h)}(hExact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely.h]hExact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]jj uh1hhhhM1hjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM4hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM4hj hhubj )}(hX3CDROMEJECT - Ejects the cdrom media usage:: ioctl(fd, CDROMEJECT, 0); inputs: none outputs: none error returns: - ENOSYS cd drive not capable of ejecting - EBUSY other processes are accessing drive, or door is locked notes: - See CDROM_LOCKDOOR, below. h](j )}(h CDROMEJECTh]h CDROMEJECT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMOhjubj% )}(hhh](h)}(hhh]h)}(hEjects the cdrom media h]h)}(hEjects the cdrom mediah]hEjects the cdrom media}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]jj uh1hhhhM7hjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjubjF )}(hioctl(fd, CDROMEJECT, 0);h]hioctl(fd, CDROMEJECT, 0);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM<hjubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMAhj0ubj% )}(hhh]h)}(hnoneh]hnone}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjBubah}(h]h ]h"]h$]h&]uh1j$ hj0ubeh}(h]h ]h"]h$]h&]uh1j hhhMAhj-ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhj_ubj% )}(hhh]h)}(hnoneh]hnone}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjqubah}(h]h ]h"]h$]h&]uh1j$ hj_ubeh}(h]h ]h"]h$]h&]uh1j hhhMEhj-ubj )}(herror returns: - ENOSYS cd drive not capable of ejecting - EBUSY other processes are accessing drive, or door is locked h](j )}(herror returns:h]herror returns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMIhjubj% )}(hhh]h)}(hhh](h)}(h,ENOSYS cd drive not capable of ejectingh]h)}(hjh]h,ENOSYS cd drive not capable of ejecting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hCEBUSY other processes are accessing drive, or door is locked h]h)}(hBEBUSY other processes are accessing drive, or door is lockedh]hBEBUSY other processes are accessing drive, or door is locked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]jj uh1hhhhMHhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMIhj-ubj )}(h'notes: - See CDROM_LOCKDOOR, below. h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMOhjubj% )}(hhh]h)}(hhh]h)}(hSee CDROM_LOCKDOOR, below. h]h)}(hSee CDROM_LOCKDOOR, below.h]hSee CDROM_LOCKDOOR, below.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]jj uh1hhhhMLhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMOhj-ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMOhj hhubj )}(hX@CDROMCLOSETRAY pendant of CDROMEJECT usage:: ioctl(fd, CDROMCLOSETRAY, 0); inputs: none outputs: none error returns: - ENOSYS cd drive not capable of closing the tray - EBUSY other processes are accessing drive, or door is locked notes: - See CDROM_LOCKDOOR, below. h](j )}(hCDROMCLOSETRAYh]hCDROMCLOSETRAY}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMjhj;ubj% )}(hhh](h)}(hpendant of CDROMEJECTh]hpendant of CDROMEJECT}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjMubh)}(husage::h]husage:}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjMubjF )}(hioctl(fd, CDROMCLOSETRAY, 0);h]hioctl(fd, CDROMCLOSETRAY, 0);}hjlsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMWhjMubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM\hj}ubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM[hjubah}(h]h ]h"]h$]h&]uh1j$ hj}ubeh}(h]h ]h"]h$]h&]uh1j hhhM\hjzubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM`hjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM`hjzubj )}(herror returns: - ENOSYS cd drive not capable of closing the tray - EBUSY other processes are accessing drive, or door is locked h](j )}(herror returns:h]herror returns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMdhjubj% )}(hhh]h)}(hhh](h)}(h4ENOSYS cd drive not capable of closing the trayh]h)}(hjh]h4ENOSYS cd drive not capable of closing the tray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hCEBUSY other processes are accessing drive, or door is locked h]h)}(hBEBUSY other processes are accessing drive, or door is lockedh]hBEBUSY other processes are accessing drive, or door is locked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]jj uh1hhhhMchjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMdhjzubj )}(h'notes: - See CDROM_LOCKDOOR, below. h](j )}(hnotes:h]hnotes:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMjhj4ubj% )}(hhh]h)}(hhh]h)}(hSee CDROM_LOCKDOOR, below. h]h)}(hSee CDROM_LOCKDOOR, below.h]hSee CDROM_LOCKDOOR, below.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghjLubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]jj uh1hhhhMghjFubah}(h]h ]h"]h$]h&]uh1j$ hj4ubeh}(h]h ]h"]h$]h&]uh1j hhhMjhjzubeh}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1j$ hj;ubeh}(h]h ]h"]h$]h&]uh1j hhhMjhj hhubj )}(hX8CDROMVOLCTRL Control output volume (struct cdrom_volctrl) usage:: struct cdrom_volctrl volume; ioctl(fd, CDROMVOLCTRL, &volume); inputs: cdrom_volctrl structure containing volumes for up to 4 channels. outputs: none error return: - ENOSYS cd drive not audio-capable. h](j )}(h CDROMVOLCTRLh]h CDROMVOLCTRL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh](h)}(h,Control output volume (struct cdrom_volctrl)h]h,Control output volume (struct cdrom_volctrl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphjubjF )}(h?struct cdrom_volctrl volume; ioctl(fd, CDROMVOLCTRL, &volume);h]h?struct cdrom_volctrl volume; ioctl(fd, CDROMVOLCTRL, &volume);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMrhjubj )}(hhh](j )}(hIinputs: cdrom_volctrl structure containing volumes for up to 4 channels. h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMxhjubj% )}(hhh]h)}(h@cdrom_volctrl structure containing volumes for up to 4 channels.h]h@cdrom_volctrl structure containing volumes for up to 4 channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMxhjubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM|hjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj ubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhM|hjubj )}(h:error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj(ubj% )}(hhh]h)}(hhh]h)}(h*ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j$ hj(ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROMVOLREAD Get the drive's volume setting (struct cdrom_volctrl) usage:: struct cdrom_volctrl volume; ioctl(fd, CDROMVOLREAD, &volume); inputs: none outputs: The current volume settings. error return: - ENOSYS cd drive not audio-capable. h](j )}(h CDROMVOLREADh]h CDROMVOLREAD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj|ubj% )}(hhh](h)}(hGet the drive's volume settingh]h Get the drive’s volume setting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h(struct cdrom_volctrl)h]h(struct cdrom_volctrl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjF )}(h?struct cdrom_volctrl volume; ioctl(fd, CDROMVOLREAD, &volume);h]h?struct cdrom_volctrl volume; ioctl(fd, CDROMVOLREAD, &volume);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(h'outputs: The current volume settings. h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hThe current volume settings.h]hThe current volume settings.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(h:error return: - ENOSYS cd drive not audio-capable. h](j )}(h error return:h]h error return:}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj*ubj% )}(hhh]h)}(hhh]h)}(h*ENOSYS cd drive not audio-capable. h]h)}(h'ENOSYS cd drive not audio-capable.h]h'ENOSYS cd drive not audio-capable.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1j$ hj*ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hj|ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROMSUBCHNL Read subchannel data (struct cdrom_subchnl) usage:: struct cdrom_subchnl q; ioctl(fd, CDROMSUBCHNL, &q); inputs: cdrom_subchnl structure outputs: cdrom_subchnl structure error return: - ENOSYS cd drive not audio-capable. - EINVAL format not CDROM_MSF or CDROM_LBA notes: - Format is converted to CDROM_MSF or CDROM_LBA as per user request on return h](j )}(h CDROMSUBCHNLh]h CDROMSUBCHNL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj~ubj% )}(hhh](h)}(hRead subchannel datah]hRead subchannel data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h(struct cdrom_subchnl)h]h(struct cdrom_subchnl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjF )}(h5struct cdrom_subchnl q; ioctl(fd, CDROMSUBCHNL, &q);h]h5struct cdrom_subchnl q; ioctl(fd, CDROMSUBCHNL, &q);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjubj )}(hhh](j )}(h!inputs: cdrom_subchnl structure h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hcdrom_subchnl structureh]hcdrom_subchnl structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(h"outputs: cdrom_subchnl structure h](j )}(houtputs:h]houtputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hcdrom_subchnl structureh]hcdrom_subchnl structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(hherror return: - ENOSYS cd drive not audio-capable. - EINVAL format not CDROM_MSF or CDROM_LBA h](j )}(h error return:h]h error return:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj,ubj% )}(hhh]h)}(hhh](h)}(h'ENOSYS cd drive not audio-capable.h]h)}(hjFh]h'ENOSYS cd drive not audio-capable.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1hhjAubh)}(h.EINVAL format not CDROM_MSF or CDROM_LBA h]h)}(h-EINVAL format not CDROM_MSF or CDROM_LBAh]h-EINVAL format not CDROM_MSF or CDROM_LBA}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj[ubah}(h]h ]h"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j$ hj,ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(hYnotes: - Format is converted to CDROM_MSF or CDROM_LBA as per user request on return h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hhh]h)}(hNFormat is converted to CDROM_MSF or CDROM_LBA as per user request on return h]h)}(hKFormat is converted to CDROM_MSF or CDROM_LBA as per user request on returnh]hKFormat is converted to CDROM_MSF or CDROM_LBA as per user request on return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]jj uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j$ hj~ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROMREADRAW read data in raw mode (2352 Bytes) (struct cdrom_read) usage:: union { struct cdrom_msf msf; /* input */ char buffer[CD_FRAMESIZE_RAW]; /* return */ } arg; ioctl(fd, CDROMREADRAW, &arg); inputs: cdrom_msf structure indicating an address to read. Only the start values are significant. outputs: Data written to address provided by user. error return: - EINVAL address less than 0, or msf less than 0:2:0 - ENOMEM out of memory notes: - As of 2.6.8.1, comments in indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address. - MSF values are converted to LBA values via this formula:: lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET; h](j )}(h CDROMREADRAWh]h CDROMREADRAW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh](h)}(h"read data in raw mode (2352 Bytes)h]h"read data in raw mode (2352 Bytes)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(h(struct cdrom_read)h]h(struct cdrom_read)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjF )}(hunion { struct cdrom_msf msf; /* input */ char buffer[CD_FRAMESIZE_RAW]; /* return */ } arg; ioctl(fd, CDROMREADRAW, &arg);h]hunion { struct cdrom_msf msf; /* input */ char buffer[CD_FRAMESIZE_RAW]; /* return */ } arg; ioctl(fd, CDROMREADRAW, &arg);}hjsbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjubj )}(hhh](j )}(hcinputs: cdrom_msf structure indicating an address to read. Only the start values are significant. h](j )}(hinputs:h]hinputs:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj)ubj% )}(hhh](h)}(h2cdrom_msf structure indicating an address to read.h]h2cdrom_msf structure indicating an address to read.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubh)}(h&Only the start values are significant.h]h&Only the start values are significant.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubeh}(h]h ]h"]h$]h&]uh1j$ hj)ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj&ubj )}(h4outputs: Data written to address provided by user. h](j )}(houtputs:h]houtputs:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjfubj% )}(hhh]h)}(h)Data written to address provided by user.h]h)Data written to address provided by user.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjxubah}(h]h ]h"]h$]h&]uh1j$ hjfubeh}(h]h ]h"]h$]h&]uh1j hhhMhj&ubj )}(hderror return: - EINVAL address less than 0, or msf less than 0:2:0 - ENOMEM out of memory h](j )}(h error return:h]h error return:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hhh](h)}(h7EINVAL address less than 0, or msf less than 0:2:0h]h)}(hjh]h7EINVAL address less than 0, or msf less than 0:2:0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hENOMEM out of memory h]h)}(hENOMEM out of memoryh]hENOMEM out of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j$ hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhj&ubj )}(hXYnotes: - As of 2.6.8.1, comments in indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address. - MSF values are converted to LBA values via this formula:: lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET; h](j )}(hnotes:h]hnotes:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj% )}(hhh]h)}(hhh](h)}(hAs of 2.6.8.1, comments in indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address. h]h)}(hAs of 2.6.8.1, comments in indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address.h]hAs of 2.6.8.1, comments in indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h}MSF values are converted to LBA values via this formula:: lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET; h](h)}(h9MSF values are converted to LBA values via this formula::h]h8MSF values are converted to LBA values via this formula:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubjF )}(hhjt!ubah}(h]h ]h"]h$]h&]uh1hhjq!ubah}(h]h ]h"]h$]h&]jj uh1hhhhM>hjn!ubah}(h]h ]h"]h$]h&]uh1j$ hj\!ubeh}(h]h ]h"]h$]h&]uh1j hhhM?hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j$ hj ubeh}(h]h ]h"]h$]h&]uh1j hhhM?hj hhubj )}(hXCDROM_GET_MCN Obtain the "Universal Product Code" if available (struct cdrom_mcn) usage:: struct cdrom_mcn mcn; ioctl(fd, CDROM_GET_MCN, &mcn); inputs: none outputs: Universal Product Code error return: - ENOSYS Drive is not capable of reading MCN data. notes: - Source code comments state:: The following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs! h](j )}(h CDROM_GET_MCNh]h CDROM_GET_MCN}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMchj!ubj% )}(hhh](h)}(h0Obtain the "Universal Product Code" if availableh]h4Obtain the “Universal Product Code” if available}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhj!ubh)}(h(struct cdrom_mcn)h]h(struct cdrom_mcn)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMEhj!ubh)}(husage::h]husage:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj!ubjF )}(h6struct cdrom_mcn mcn; ioctl(fd, CDROM_GET_MCN, &mcn);h]h6struct cdrom_mcn mcn; ioctl(fd, CDROM_GET_MCN, &mcn);}hj!sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMJhj!ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMPhj"ubj% )}(hhh]h)}(hnoneh]hnone}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhj"ubah}(h]h ]h"]h$]h&]uh1j$ hj"ubeh}(h]h ]h"]h$]h&]uh1j hhhMPhj!ubj )}(h!outputs: Universal Product Code h](j )}(houtputs:h]houtputs:}(hj3"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMThj/"ubj% )}(hhh]h)}(hUniversal Product Codeh]hUniversal Product Code}(hjD"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjA"ubah}(h]h ]h"]h$]h&]uh1j$ hj/"ubeh}(h]h ]h"]h$]h&]uh1j hhhMThj!ubj )}(hFerror return: - ENOSYS Drive is not capable of reading MCN data. h](j )}(h error return:h]h error return:}(hjb"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMWhj^"ubj% )}(hhh]h)}(hhh]h)}(h6ENOSYS Drive is not capable of reading MCN data. h]h)}(h5ENOSYS Drive is not capable of reading MCN data.h]h5ENOSYS Drive is not capable of reading MCN data.}(hjz"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjv"ubah}(h]h ]h"]h$]h&]uh1hhjs"ubah}(h]h ]h"]h$]h&]jj uh1hhhhMWhjp"ubah}(h]h ]h"]h$]h&]uh1j$ hj^"ubeh}(h]h ]h"]h$]h&]uh1j hhhMWhj!ubj )}(hX<notes: - Source code comments state:: The following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs! h](j )}(hnotes:h]hnotes:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMchj"ubj% )}(hhh]h)}(hhh]h)}(hX)Source code comments state:: The following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs! h](h)}(hSource code comments state::h]hSource code comments state:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhj"ubjF )}(hThe following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs!h]hThe following function is implemented, although very few audio discs give Universal Product Code information, which should just be the Medium Catalog Number on the box. Note, that the way the code is written on the CD is /not/ uniform across all discs!}hj"sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM\hj"ubeh}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]jj uh1hhhhMZhj"ubah}(h]h ]h"]h$]h&]uh1j$ hj"ubeh}(h]h ]h"]h$]h&]uh1j hhhMchj!ubeh}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1j$ hj!ubeh}(h]h ]h"]h$]h&]uh1j hhhMchj hhubj )}(hMCDROM_GET_UPC CDROM_GET_MCN (deprecated) Not implemented, as of 2.6.8.1 h](j )}(h CDROM_GET_UPCh]h CDROM_GET_UPC}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMkhj#ubj% )}(hhh](h)}(hCDROM_GET_MCN (deprecated)h]hCDROM_GET_MCN (deprecated)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhj#ubh)}(hNot implemented, as of 2.6.8.1h]hNot implemented, as of 2.6.8.1}(hj%#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihj#ubeh}(h]h ]h"]h$]h&]uh1j$ hj#ubeh}(h]h ]h"]h$]h&]uh1j hhhMkhj hhubj )}(hCDROMRESET hard-reset the drive usage:: ioctl(fd, CDROMRESET, 0); inputs: none outputs: none error return: - EACCES Access denied: requires CAP_SYS_ADMIN - ENOSYS Drive is not capable of resetting. h](j )}(h CDROMRESETh]h CDROMRESET}(hjC#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj?#ubj% )}(hhh](h)}(hhard-reset the driveh]hhard-reset the drive}(hjT#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhjQ#ubh)}(husage::h]husage:}(hjb#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMqhjQ#ubjF )}(hioctl(fd, CDROMRESET, 0);h]hioctl(fd, CDROMRESET, 0);}hjp#sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMshjQ#ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMxhj#ubj% )}(hhh]h)}(hnoneh]hnone}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhj#ubah}(h]h ]h"]h$]h&]uh1j$ hj#ubeh}(h]h ]h"]h$]h&]uh1j hhhMxhj~#ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM|hj#ubj% )}(hhh]h)}(hnoneh]hnone}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj#ubah}(h]h ]h"]h$]h&]uh1j$ hj#ubeh}(h]h ]h"]h$]h&]uh1j hhhM|hj~#ubj )}(hwerror return: - EACCES Access denied: requires CAP_SYS_ADMIN - ENOSYS Drive is not capable of resetting. h](j )}(h error return:h]h error return:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj#ubj% )}(hhh]h)}(hhh](h)}(h2EACCES Access denied: requires CAP_SYS_ADMINh]h)}(hj#h]h2EACCES Access denied: requires CAP_SYS_ADMIN}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubh)}(h2ENOSYS Drive is not capable of resetting. h]h)}(h.ENOSYS Drive is not capable of resetting.h]h.ENOSYS Drive is not capable of resetting.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1j$ hj#ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj~#ubeh}(h]h ]h"]h$]h&]uh1j hjQ#ubeh}(h]h ]h"]h$]h&]uh1j$ hj?#ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hCDROMREADCOOKED read data in cooked mode usage:: u8 buffer[CD_FRAMESIZE] ioctl(fd, CDROMREADCOOKED, buffer); inputs: none outputs: 2048 bytes of data, "cooked" mode. notes: Not implemented on all drives. h](j )}(hCDROMREADCOOKEDh]hCDROMREADCOOKED}(hjN$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjJ$ubj% )}(hhh](h)}(hread data in cooked modeh]hread data in cooked mode}(hj_$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\$ubh)}(husage::h]husage:}(hjm$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\$ubjF )}(h(ubj% )}(hhh](h)}(hSet behavior optionsh]hSet behavior options}(hjS(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjP(ubh)}(husage::h]husage:}(hja(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjP(ubjF )}(h4int options; ioctl(fd, CDROM_SET_OPTIONS, options);h]h4int options; ioctl(fd, CDROM_SET_OPTIONS, options);}hjo(sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjP(ubj )}(hhh](j )}(hXinputs: New values for drive options. The logical 'or' of: ============== ================================== CDO_AUTO_CLOSE close tray on first open(2) CDO_AUTO_EJECT open tray on last release CDO_USE_FFLAGS use O_NONBLOCK information on open CDO_LOCK lock tray on open files CDO_CHECK_TYPE check type on open for data ============== ================================== h](j )}(hinputs:h]hinputs:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj(ubj% )}(hhh](j5)}(h4New values for drive options. The logical 'or' of: h]h)}(h3New values for drive options. The logical 'or' of:h]h7New values for drive options. The logical ‘or’ of:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj(ubj;)}(hhh]j@)}(hhh](jE)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhj(ubjE)}(hhh]h}(h]h ]h"]h$]h&]colwidthK"uh1jDhj(ubj[)}(hhh](j`)}(hhh](je)}(hhh]h)}(hCDO_AUTO_CLOSEh]hCDO_AUTO_CLOSE}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj(ubah}(h]h ]h"]h$]h&]uh1jdhj(ubje)}(hhh]h)}(hclose tray on first open(2)h]hclose tray on first open(2)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj(ubah}(h]h ]h"]h$]h&]uh1jdhj(ubeh}(h]h ]h"]h$]h&]uh1j_hj(ubj`)}(hhh](je)}(hhh]h)}(hCDO_AUTO_EJECTh]hCDO_AUTO_EJECT}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jdhj)ubje)}(hhh]h)}(hopen tray on last releaseh]hopen tray on last release}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jdhj)ubeh}(h]h ]h"]h$]h&]uh1j_hj(ubj`)}(hhh](je)}(hhh]h)}(hCDO_USE_FFLAGSh]hCDO_USE_FFLAGS}(hj>)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj;)ubah}(h]h ]h"]h$]h&]uh1jdhj8)ubje)}(hhh]h)}(h"use O_NONBLOCK information on openh]h"use O_NONBLOCK information on open}(hjU)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjR)ubah}(h]h ]h"]h$]h&]uh1jdhj8)ubeh}(h]h ]h"]h$]h&]uh1j_hj(ubj`)}(hhh](je)}(hhh]h)}(hCDO_LOCKh]hCDO_LOCK}(hju)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjr)ubah}(h]h ]h"]h$]h&]uh1jdhjo)ubje)}(hhh]h)}(hlock tray on open filesh]hlock tray on open files}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jdhjo)ubeh}(h]h ]h"]h$]h&]uh1j_hj(ubj`)}(hhh](je)}(hhh]h)}(hCDO_CHECK_TYPEh]hCDO_CHECK_TYPE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jdhj)ubje)}(hhh]h)}(hcheck type on open for datah]hcheck type on open for data}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jdhj)ubeh}(h]h ]h"]h$]h&]uh1j_hj(ubeh}(h]h ]h"]h$]h&]uh1jZhj(ubeh}(h]h ]h"]h$]h&]colsKuh1j?hj(ubah}(h]h ]h"]h$]h&]uh1j:hj(ubeh}(h]h ]h"]h$]h&]uh1j$ hj(ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj}(ubj )}(haoutputs: Returns the resulting options settings in the ioctl return value. Returns -1 on error. h](j )}(houtputs:h]houtputs:}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj)ubj% )}(hhh]h)}(hWReturns the resulting options settings in the ioctl return value. Returns -1 on error.h]hWReturns the resulting options settings in the ioctl return value. Returns -1 on error.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1j$ hj)ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj}(ubj )}(hJerror return: - ENOSYS selected option(s) not supported by drive. h](j )}(h error return:h]h error return:}(hj/*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj+*ubj% )}(hhh]h)}(hhh]h)}(h:ENOSYS selected option(s) not supported by drive. h]h)}(h6ENOSYS selected option(s) not supported by drive.h]h6ENOSYS selected option(s) not supported by drive.}(hjG*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjC*ubah}(h]h ]h"]h$]h&]uh1hhj@*ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj=*ubah}(h]h ]h"]h$]h&]uh1j$ hj+*ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj}(ubeh}(h]h ]h"]h$]h&]uh1j hjP(ubeh}(h]h ]h"]h$]h&]uh1j$ hj>(ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hwCDROM_CLEAR_OPTIONS Clear behavior options Same as CDROM_SET_OPTIONS, except that selected options are turned off. h](j )}(hCDROM_CLEAR_OPTIONSh]hCDROM_CLEAR_OPTIONS}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM!hj*ubj% )}(hhh](h)}(hClear behavior optionsh]hClear behavior options}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubh)}(hGSame as CDROM_SET_OPTIONS, except that selected options are turned off.h]hGSame as CDROM_SET_OPTIONS, except that selected options are turned off.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubeh}(h]h ]h"]h$]h&]uh1j$ hj*ubeh}(h]h ]h"]h$]h&]uh1j hhhM!hj hhubj )}(hCDROM_SELECT_SPEED Set the CD-ROM speed usage:: int speed; ioctl(fd, CDROM_SELECT_SPEED, speed); inputs: New drive speed. outputs: none error return: - ENOSYS speed selection not supported by drive. h](j )}(hCDROM_SELECT_SPEEDh]hCDROM_SELECT_SPEED}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM8hj*ubj% )}(hhh](h)}(hSet the CD-ROM speedh]hSet the CD-ROM speed}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hj*ubh)}(husage::h]husage:}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hj*ubjF )}(h1int speed; ioctl(fd, CDROM_SELECT_SPEED, speed);h]h1int speed; ioctl(fd, CDROM_SELECT_SPEED, speed);}hj*sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM)hj*ubj )}(hhh](j )}(hinputs: New drive speed. h](j )}(hinputs:h]hinputs:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM/hj*ubj% )}(hhh]h)}(hNew drive speed.h]hNew drive speed.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj+ubah}(h]h ]h"]h$]h&]uh1j$ hj*ubeh}(h]h ]h"]h$]h&]uh1j hhhM/hj*ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj1+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM3hj-+ubj% )}(hhh]h)}(hnoneh]hnone}(hjB+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hj?+ubah}(h]h ]h"]h$]h&]uh1j$ hj-+ubeh}(h]h ]h"]h$]h&]uh1j hhhM3hj*ubj )}(hFerror return: - ENOSYS speed selection not supported by drive. h](j )}(h error return:h]h error return:}(hj`+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM8hj\+ubj% )}(hhh]h)}(hhh]h)}(h6ENOSYS speed selection not supported by drive. h]h)}(h3ENOSYS speed selection not supported by drive.h]h3ENOSYS speed selection not supported by drive.}(hjx+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjt+ubah}(h]h ]h"]h$]h&]uh1hhjq+ubah}(h]h ]h"]h$]h&]jj uh1hhhhM6hjn+ubah}(h]h ]h"]h$]h&]uh1j$ hj\+ubeh}(h]h ]h"]h$]h&]uh1j hhhM8hj*ubeh}(h]h ]h"]h$]h&]uh1j hj*ubeh}(h]h ]h"]h$]h&]uh1j$ hj*ubeh}(h]h ]h"]h$]h&]uh1j hhhM8hj hhubj )}(hCDROM_SELECT_DISC Select disc (for juke-boxes) usage:: int disk; ioctl(fd, CDROM_SELECT_DISC, disk); inputs: Disk to load into drive. outputs: none error return: - EINVAL Disk number beyond capacity of drive h](j )}(hCDROM_SELECT_DISCh]hCDROM_SELECT_DISC}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMOhj+ubj% )}(hhh](h)}(hSelect disc (for juke-boxes)h]hSelect disc (for juke-boxes)}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj+ubh)}(husage::h]husage:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hj+ubjF )}(h.int disk; ioctl(fd, CDROM_SELECT_DISC, disk);h]h.int disk; ioctl(fd, CDROM_SELECT_DISC, disk);}hj+sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM@hj+ubj )}(hhh](j )}(h"inputs: Disk to load into drive. h](j )}(hinputs:h]hinputs:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMFhj+ubj% )}(hhh]h)}(hDisk to load into drive.h]hDisk to load into drive.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMEhj,ubah}(h]h ]h"]h$]h&]uh1j$ hj+ubeh}(h]h ]h"]h$]h&]uh1j hhhMFhj+ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj%,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMJhj!,ubj% )}(hhh]h)}(hnoneh]hnone}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj3,ubah}(h]h ]h"]h$]h&]uh1j$ hj!,ubeh}(h]h ]h"]h$]h&]uh1j hhhMJhj+ubj )}(hCerror return: - EINVAL Disk number beyond capacity of drive h](j )}(h error return:h]h error return:}(hjT,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMOhjP,ubj% )}(hhh]h)}(hhh]h)}(h3EINVAL Disk number beyond capacity of drive h]h)}(h0EINVAL Disk number beyond capacity of driveh]h0EINVAL Disk number beyond capacity of drive}(hjl,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjh,ubah}(h]h ]h"]h$]h&]uh1hhje,ubah}(h]h ]h"]h$]h&]jj uh1hhhhMMhjb,ubah}(h]h ]h"]h$]h&]uh1j$ hjP,ubeh}(h]h ]h"]h$]h&]uh1j hhhMOhj+ubeh}(h]h ]h"]h$]h&]uh1j hj+ubeh}(h]h ]h"]h$]h&]uh1j$ hj+ubeh}(h]h ]h"]h$]h&]uh1j hhhMOhj hhubj )}(hXCDROM_MEDIA_CHANGED Check is media changed usage:: int slot; ioctl(fd, CDROM_MEDIA_CHANGED, slot); inputs: Slot number to be tested, always zero except for jukeboxes. May also be special values CDSL_NONE or CDSL_CURRENT outputs: Ioctl return value is 0 or 1 depending on whether the media has been changed, or -1 on error. error returns: - ENOSYS Drive can't detect media change - EINVAL Slot number beyond capacity of drive - ENOMEM Out of memory h](j )}(hCDROM_MEDIA_CHANGEDh]hCDROM_MEDIA_CHANGED}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMjhj,ubj% )}(hhh](h)}(hCheck is media changedh]hCheck is media changed}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhj,ubh)}(husage::h]husage:}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj,ubjF )}(h0int slot; ioctl(fd, CDROM_MEDIA_CHANGED, slot);h]h0int slot; ioctl(fd, CDROM_MEDIA_CHANGED, slot);}hj,sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMWhj,ubj )}(hhh](j )}(hzinputs: Slot number to be tested, always zero except for jukeboxes. May also be special values CDSL_NONE or CDSL_CURRENT h](j )}(hinputs:h]hinputs:}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM^hj,ubj% )}(hhh](h)}(h;Slot number to be tested, always zero except for jukeboxes.h]h;Slot number to be tested, always zero except for jukeboxes.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hj,ubh)}(h4May also be special values CDSL_NONE or CDSL_CURRENTh]h4May also be special values CDSL_NONE or CDSL_CURRENT}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hj,ubeh}(h]h ]h"]h$]h&]uh1j$ hj,ubeh}(h]h ]h"]h$]h&]uh1j hhhM^hj,ubj )}(hnoutputs: Ioctl return value is 0 or 1 depending on whether the media has been changed, or -1 on error. h](j )}(houtputs:h]houtputs:}(hj'-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMchj#-ubj% )}(hhh](j5)}(h: =================== ========================== CDS_NO_INFO Information not available. CDS_NO_DISC CDS_TRAY_OPEN CDS_DRIVE_NOT_READY CDS_DISC_OK -1 error =================== ========================== error returns: - ENOSYS Drive can't detect drive status - EINVAL Slot number beyond capacity of drive - ENOMEM Out of memory h](j )}(hCDROM_DRIVE_STATUSh]hCDROM_DRIVE_STATUS}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj-ubj% )}(hhh](h)}(hGet tray position, etc.h]hGet tray position, etc.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhj-ubh)}(husage::h]husage:}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj-ubjF )}(h/int slot; ioctl(fd, CDROM_DRIVE_STATUS, slot);h]h/int slot; ioctl(fd, CDROM_DRIVE_STATUS, slot);}hj.sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMrhj-ubj )}(hhh](j )}(hzinputs: Slot number to be tested, always zero except for jukeboxes. May also be special values CDSL_NONE or CDSL_CURRENT h](j )}(hinputs:h]hinputs:}(hj2.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMyhj..ubj% )}(hhh](h)}(h;Slot number to be tested, always zero except for jukeboxes.h]h;Slot number to be tested, always zero except for jukeboxes.}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhj@.ubh)}(h4May also be special values CDSL_NONE or CDSL_CURRENTh]h4May also be special values CDSL_NONE or CDSL_CURRENT}(hjQ.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhj@.ubeh}(h]h ]h"]h$]h&]uh1j$ hj..ubeh}(h]h ]h"]h$]h&]uh1j hhhMyhj+.ubj )}(hXOoutputs: Ioctl return value will be one of the following values from : =================== ========================== CDS_NO_INFO Information not available. CDS_NO_DISC CDS_TRAY_OPEN CDS_DRIVE_NOT_READY CDS_DISC_OK -1 error =================== ========================== h](j )}(houtputs:h]houtputs:}(hjo.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjk.ubj% )}(hhh](j5)}(h7Ioctl return value will be one of the following values h]h)}(h6Ioctl return value will be one of the following valuesh]h6Ioctl return value will be one of the following values}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hj.ubah}(h]h ]h"]h$]h&]uh1j4hhhM|hj}.ubh)}(hfrom :h]hfrom :}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj}.ubj5)}(h=================== ========================== CDS_NO_INFO Information not available. CDS_NO_DISC CDS_TRAY_OPEN CDS_DRIVE_NOT_READY CDS_DISC_OK -1 error =================== ========================== h]j;)}(hhh]j@)}(hhh](jE)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhj.ubjE)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhj.ubj[)}(hhh](j`)}(hhh](je)}(hhh]h)}(h CDS_NO_INFOh]h CDS_NO_INFO}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jdhj.ubje)}(hhh]h)}(hInformation not available.h]hInformation not available.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jdhj.ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubj`)}(hhh](je)}(hhh]h)}(h CDS_NO_DISCh]h CDS_NO_DISC}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jdhj.ubje)}(hhh]h}(h]h ]h"]h$]h&]uh1jdhj.ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubj`)}(hhh](je)}(hhh]h)}(h CDS_TRAY_OPENh]h CDS_TRAY_OPEN}(hj-/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*/ubah}(h]h ]h"]h$]h&]uh1jdhj'/ubje)}(hhh]h}(h]h ]h"]h$]h&]uh1jdhj'/ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubj`)}(hhh](je)}(hhh]h)}(hCDS_DRIVE_NOT_READYh]hCDS_DRIVE_NOT_READY}(hjV/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjS/ubah}(h]h ]h"]h$]h&]uh1jdhjP/ubje)}(hhh]h}(h]h ]h"]h$]h&]uh1jdhjP/ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubj`)}(hhh](je)}(hhh]h)}(h CDS_DISC_OKh]h CDS_DISC_OK}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj|/ubah}(h]h ]h"]h$]h&]uh1jdhjy/ubje)}(hhh]h}(h]h ]h"]h$]h&]uh1jdhjy/ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubj`)}(hhh](je)}(hhh]h)}(h-1h]h-1}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jdhj/ubje)}(hhh]h)}(herrorh]herror}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jdhj/ubeh}(h]h ]h"]h$]h&]uh1j_hj.ubeh}(h]h ]h"]h$]h&]uh1jZhj.ubeh}(h]h ]h"]h$]h&]colsKuh1j?hj.ubah}(h]h ]h"]h$]h&]uh1j:hj.ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj}.ubeh}(h]h ]h"]h$]h&]uh1j$ hjk.ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj+.ubj )}(herror returns: - ENOSYS Drive can't detect drive status - EINVAL Slot number beyond capacity of drive - ENOMEM Out of memory h](j )}(herror returns:h]herror returns:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj/ubj% )}(hhh]h)}(hhh](h)}(h+ENOSYS Drive can't detect drive statush]h)}(hj0h]h-ENOSYS Drive can’t detect drive status}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1hhj0ubh)}(h0EINVAL Slot number beyond capacity of driveh]h)}(hj/0h]h0EINVAL Slot number beyond capacity of drive}(hj10hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-0ubah}(h]h ]h"]h$]h&]uh1hhj0ubh)}(hENOMEM Out of memory h]h)}(hENOMEM Out of memoryh]hENOMEM Out of memory}(hjH0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjD0ubah}(h]h ]h"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j$ hj/ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj+.ubeh}(h]h ]h"]h$]h&]uh1j hj-ubeh}(h]h ]h"]h$]h&]uh1j$ hj-ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROM_DISC_STATUS Get disc type, etc. usage:: ioctl(fd, CDROM_DISC_STATUS, 0); inputs: none outputs: Ioctl return value will be one of the following values from : - CDS_NO_INFO - CDS_AUDIO - CDS_MIXED - CDS_XA_2_2 - CDS_XA_2_1 - CDS_DATA_1 error returns: none at present notes: - Source code comments state:: Ok, this is where problems start. The current interface for the CDROM_DISC_STATUS ioctl is flawed. It makes the false assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc. Unfortunately, while this is often the case, it is also very common for CDs to have some tracks with data, and some tracks with audio. Just because I feel like it, I declare the following to be the best way to cope. If the CD has ANY data tracks on it, it will be returned as a data CD. If it has any XA tracks, I will return it as that. Now I could simplify this interface by combining these returns with the above, but this more clearly demonstrates the problem with the current interface. Too bad this wasn't designed to use bitmasks... -Erik Well, now we have the option CDS_MIXED: a mixed-type CD. User level programmers might feel the ioctl is not very useful. ---david h](j )}(hCDROM_DISC_STATUSh]hCDROM_DISC_STATUS}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj% )}(hhh](h)}(hGet disc type, etc.h]hGet disc type, etc.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubh)}(husage::h]husage:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubjF )}(h ioctl(fd, CDROM_DISC_STATUS, 0);h]h ioctl(fd, CDROM_DISC_STATUS, 0);}hj0sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhj0ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj% )}(hhh]h)}(hnoneh]hnone}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j$ hj0ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj )}(houtputs: Ioctl return value will be one of the following values from : - CDS_NO_INFO - CDS_AUDIO - CDS_MIXED - CDS_XA_2_2 - CDS_XA_2_1 - CDS_DATA_1 h](j )}(houtputs:h]houtputs:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj% )}(hhh](j5)}(h7Ioctl return value will be one of the following values h]h)}(h6Ioctl return value will be one of the following valuesh]h6Ioctl return value will be one of the following values}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj1ubh)}(hfrom :h]hfrom :}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubj5)}(hM- CDS_NO_INFO - CDS_AUDIO - CDS_MIXED - CDS_XA_2_2 - CDS_XA_2_1 - CDS_DATA_1 h]h)}(hhh](h)}(h CDS_NO_INFOh]h)}(hj51h]h CDS_NO_INFO}(hj71hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj31ubah}(h]h ]h"]h$]h&]uh1hhj01ubh)}(h CDS_AUDIOh]h)}(hjL1h]h CDS_AUDIO}(hjN1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjJ1ubah}(h]h ]h"]h$]h&]uh1hhj01ubh)}(h CDS_MIXEDh]h)}(hjc1h]h CDS_MIXED}(hje1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhja1ubah}(h]h ]h"]h$]h&]uh1hhj01ubh)}(h CDS_XA_2_2h]h)}(hjz1h]h CDS_XA_2_2}(hj|1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx1ubah}(h]h ]h"]h$]h&]uh1hhj01ubh)}(h CDS_XA_2_1h]h)}(hj1h]h CDS_XA_2_1}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1hhj01ubh)}(h CDS_DATA_1 h]h)}(h CDS_DATA_1h]h CDS_DATA_1}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1hhj01ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj,1ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj1ubeh}(h]h ]h"]h$]h&]uh1j$ hj0ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj )}(herror returns: none at present h](j )}(herror returns:h]herror returns:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj1ubj% )}(hhh]h)}(hnone at presenth]hnone at present}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j$ hj1ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj0ubj )}(hXnotes: - Source code comments state:: Ok, this is where problems start. The current interface for the CDROM_DISC_STATUS ioctl is flawed. It makes the false assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc. Unfortunately, while this is often the case, it is also very common for CDs to have some tracks with data, and some tracks with audio. Just because I feel like it, I declare the following to be the best way to cope. If the CD has ANY data tracks on it, it will be returned as a data CD. If it has any XA tracks, I will return it as that. Now I could simplify this interface by combining these returns with the above, but this more clearly demonstrates the problem with the current interface. Too bad this wasn't designed to use bitmasks... -Erik Well, now we have the option CDS_MIXED: a mixed-type CD. User level programmers might feel the ioctl is not very useful. ---david h](j )}(hnotes:h]hnotes:}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj% )}(hhh]h)}(hhh]h)}(hXSource code comments state:: Ok, this is where problems start. The current interface for the CDROM_DISC_STATUS ioctl is flawed. It makes the false assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc. Unfortunately, while this is often the case, it is also very common for CDs to have some tracks with data, and some tracks with audio. Just because I feel like it, I declare the following to be the best way to cope. If the CD has ANY data tracks on it, it will be returned as a data CD. If it has any XA tracks, I will return it as that. Now I could simplify this interface by combining these returns with the above, but this more clearly demonstrates the problem with the current interface. Too bad this wasn't designed to use bitmasks... -Erik Well, now we have the option CDS_MIXED: a mixed-type CD. User level programmers might feel the ioctl is not very useful. ---david h](h)}(hSource code comments state::h]hSource code comments state:}(hj!2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubjF )}(hXOk, this is where problems start. The current interface for the CDROM_DISC_STATUS ioctl is flawed. It makes the false assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc. Unfortunately, while this is often the case, it is also very common for CDs to have some tracks with data, and some tracks with audio. Just because I feel like it, I declare the following to be the best way to cope. If the CD has ANY data tracks on it, it will be returned as a data CD. If it has any XA tracks, I will return it as that. Now I could simplify this interface by combining these returns with the above, but this more clearly demonstrates the problem with the current interface. Too bad this wasn't designed to use bitmasks... -Erik Well, now we have the option CDS_MIXED: a mixed-type CD. User level programmers might feel the ioctl is not very useful. ---davidh]hXOk, this is where problems start. The current interface for the CDROM_DISC_STATUS ioctl is flawed. It makes the false assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc. Unfortunately, while this is often the case, it is also very common for CDs to have some tracks with data, and some tracks with audio. Just because I feel like it, I declare the following to be the best way to cope. If the CD has ANY data tracks on it, it will be returned as a data CD. If it has any XA tracks, I will return it as that. Now I could simplify this interface by combining these returns with the above, but this more clearly demonstrates the problem with the current interface. Too bad this wasn't designed to use bitmasks... -Erik Well, now we have the option CDS_MIXED: a mixed-type CD. User level programmers might feel the ioctl is not very useful. ---david}hj/2sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhj2ubeh}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j$ hj2ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1j$ hj0ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROM_CHANGER_NSLOTS Get number of slots usage:: ioctl(fd, CDROM_CHANGER_NSLOTS, 0); inputs: none outputs: The ioctl return value will be the number of slots in a CD changer. Typically 1 for non-multi-disk devices. error returns: none h](j )}(hCDROM_CHANGER_NSLOTSh]hCDROM_CHANGER_NSLOTS}(hjk2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjg2ubj% )}(hhh](h)}(hGet number of slotsh]hGet number of slots}(hj|2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjy2ubh)}(husage::h]husage:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjy2ubjF )}(h#ioctl(fd, CDROM_CHANGER_NSLOTS, 0);h]h#ioctl(fd, CDROM_CHANGER_NSLOTS, 0);}hj2sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjy2ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj% )}(hhh]h)}(hnoneh]hnone}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j$ hj2ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj )}(hvoutputs: The ioctl return value will be the number of slots in a CD changer. Typically 1 for non-multi-disk devices. h](j )}(houtputs:h]houtputs:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj% )}(hhh]h)}(hlThe ioctl return value will be the number of slots in a CD changer. Typically 1 for non-multi-disk devices.h]hlThe ioctl return value will be the number of slots in a CD changer. Typically 1 for non-multi-disk devices.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j$ hj2ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj )}(herror returns: none h](j )}(herror returns:h]herror returns:}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj% )}(hhh]h)}(hnoneh]hnone}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j$ hj3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj2ubeh}(h]h ]h"]h$]h&]uh1j hjy2ubeh}(h]h ]h"]h$]h&]uh1j$ hjg2ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROM_LOCKDOOR lock or unlock door usage:: int lock; ioctl(fd, CDROM_LOCKDOOR, lock); inputs: Door lock flag, 1=lock, 0=unlock outputs: none error returns: - EDRIVE_CANT_DO_THIS Door lock function not supported. - EBUSY Attempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN notes: As of 2.6.8.1, the lock flag is a global lock, meaning that all CD drives will be locked or unlocked together. This is probably a bug. The EDRIVE_CANT_DO_THIS value is defined in and is currently (2.6.8.1) the same as EOPNOTSUPP h](j )}(hCDROM_LOCKDOORh]hCDROM_LOCKDOOR}(hjL3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjH3ubj% )}(hhh](h)}(hlock or unlock doorh]hlock or unlock door}(hj]3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjZ3ubh)}(husage::h]husage:}(hjk3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjZ3ubjF )}(h+int lock; ioctl(fd, CDROM_LOCKDOOR, lock);h]h+int lock; ioctl(fd, CDROM_LOCKDOOR, lock);}hjy3sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjZ3ubj )}(hhh](j )}(h*inputs: Door lock flag, 1=lock, 0=unlock h](j )}(hinputs:h]hinputs:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj% )}(hhh]h)}(h Door lock flag, 1=lock, 0=unlockh]h Door lock flag, 1=lock, 0=unlock}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j$ hj3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj% )}(hhh]h)}(hnoneh]hnone}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j$ hj3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj )}(herror returns: - EDRIVE_CANT_DO_THIS Door lock function not supported. - EBUSY Attempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN h](j )}(herror returns:h]herror returns:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj% )}(hhh]h)}(hhh](h)}(hJEDRIVE_CANT_DO_THIS Door lock function not supported.h](h)}(hEDRIVE_CANT_DO_THISh]hEDRIVE_CANT_DO_THIS}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubj5)}(h!Door lock function not supported.h]h)}(hj4h]h!Door lock function not supported.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj4ubeh}(h]h ]h"]h$]h&]uh1hhj3ubh)}(hEBUSY Attempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN h](h)}(hEBUSYh]hEBUSY}(hj34hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/4ubj5)}(hPAttempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN h]h)}(hOAttempt to unlock when multiple users have the drive open and not CAP_SYS_ADMINh]hOAttempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN}(hjE4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA4ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj/4ubeh}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j$ hj3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj3ubj )}(hXnotes: As of 2.6.8.1, the lock flag is a global lock, meaning that all CD drives will be locked or unlocked together. This is probably a bug. The EDRIVE_CANT_DO_THIS value is defined in and is currently (2.6.8.1) the same as EOPNOTSUPP h](j )}(hnotes:h]hnotes:}(hju4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjq4ubj% )}(hhh](h)}(hAs of 2.6.8.1, the lock flag is a global lock, meaning that all CD drives will be locked or unlocked together. This is probably a bug.h]hAs of 2.6.8.1, the lock flag is a global lock, meaning that all CD drives will be locked or unlocked together. This is probably a bug.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubh)}(hmThe EDRIVE_CANT_DO_THIS value is defined in and is currently (2.6.8.1) the same as EOPNOTSUPPh]hmThe EDRIVE_CANT_DO_THIS value is defined in and is currently (2.6.8.1) the same as EOPNOTSUPP}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubeh}(h]h ]h"]h$]h&]uh1j$ hjq4ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj3ubeh}(h]h ]h"]h$]h&]uh1j hjZ3ubeh}(h]h ]h"]h$]h&]uh1j$ hjH3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hX'CDROM_DEBUG Turn debug messages on/off usage:: int debug; ioctl(fd, CDROM_DEBUG, debug); inputs: Cdrom debug flag, 0=disable, 1=enable outputs: The ioctl return value will be the new debug flag. error return: - EACCES Access denied: requires CAP_SYS_ADMIN h](j )}(h CDROM_DEBUGh]h CDROM_DEBUG}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj4ubj% )}(hhh](h)}(hTurn debug messages on/offh]hTurn debug messages on/off}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubh)}(husage::h]husage:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubjF )}(h*int debug; ioctl(fd, CDROM_DEBUG, debug);h]h*int debug; ioctl(fd, CDROM_DEBUG, debug);}hj4sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhj4ubj )}(hhh](j )}(h/inputs: Cdrom debug flag, 0=disable, 1=enable h](j )}(hinputs:h]hinputs:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj5ubj% )}(hhh]h)}(h%Cdrom debug flag, 0=disable, 1=enableh]h%Cdrom debug flag, 0=disable, 1=enable}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj5ubah}(h]h ]h"]h$]h&]uh1j$ hj5ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj4ubj )}(h=outputs: The ioctl return value will be the new debug flag. h](j )}(houtputs:h]houtputs:}(hj55hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj15ubj% )}(hhh]h)}(h2The ioctl return value will be the new debug flag.h]h2The ioctl return value will be the new debug flag.}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjC5ubah}(h]h ]h"]h$]h&]uh1j$ hj15ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj4ubj )}(hEerror return: - EACCES Access denied: requires CAP_SYS_ADMIN h](j )}(h error return:h]h error return:}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj`5ubj% )}(hhh]h)}(hhh]h)}(h5EACCES Access denied: requires CAP_SYS_ADMIN h]h)}(h2EACCES Access denied: requires CAP_SYS_ADMINh]h2EACCES Access denied: requires CAP_SYS_ADMIN}(hj|5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx5ubah}(h]h ]h"]h$]h&]uh1hhju5ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhjr5ubah}(h]h ]h"]h$]h&]uh1j$ hj`5ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1j$ hj4ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hCDROM_GET_CAPABILITY get capabilities usage:: ioctl(fd, CDROM_GET_CAPABILITY, 0); inputs: none outputs: The ioctl return value is the current device capability flags. See CDC_CLOSE_TRAY, CDC_OPEN_TRAY, etc. h](j )}(hCDROM_GET_CAPABILITYh]hCDROM_GET_CAPABILITY}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM*hj5ubj% )}(hhh](h)}(hget capabilitiesh]hget capabilities}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubh)}(husage::h]husage:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubjF )}(h#ioctl(fd, CDROM_GET_CAPABILITY, 0);h]h#ioctl(fd, CDROM_GET_CAPABILITY, 0);}hj5sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhj5ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM$hj5ubj% )}(hhh]h)}(hnoneh]hnone}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj6ubah}(h]h ]h"]h$]h&]uh1j$ hj5ubeh}(h]h ]h"]h$]h&]uh1j hhhM$hj5ubj )}(hsoutputs: The ioctl return value is the current device capability flags. See CDC_CLOSE_TRAY, CDC_OPEN_TRAY, etc. h](j )}(houtputs:h]houtputs:}(hj)6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM*hj%6ubj% )}(hhh]h)}(hgThe ioctl return value is the current device capability flags. See CDC_CLOSE_TRAY, CDC_OPEN_TRAY, etc.h]hgThe ioctl return value is the current device capability flags. See CDC_CLOSE_TRAY, CDC_OPEN_TRAY, etc.}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hj76ubah}(h]h ]h"]h$]h&]uh1j$ hj%6ubeh}(h]h ]h"]h$]h&]uh1j hhhM*hj5ubeh}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1j$ hj5ubeh}(h]h ]h"]h$]h&]uh1j hhhM*hj hhubj )}(hX[CDROMAUDIOBUFSIZ set the audio buffer size usage:: int arg; ioctl(fd, CDROMAUDIOBUFSIZ, val); inputs: New audio buffer size outputs: The ioctl return value is the new audio buffer size, or -1 on error. error return: - ENOSYS Not supported by this driver. notes: Not supported by all drivers. h](j )}(hCDROMAUDIOBUFSIZh]hCDROMAUDIOBUFSIZ}(hjj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhjf6ubj% )}(hhh](h)}(hset the audio buffer sizeh]hset the audio buffer size}(hj{6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjx6ubh)}(husage::h]husage:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hjx6ubjF )}(h+int arg; ioctl(fd, CDROMAUDIOBUFSIZ, val);h]h+int arg; ioctl(fd, CDROMAUDIOBUFSIZ, val);}hj6sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhM2hjx6ubj )}(hhh](j )}(hinputs: New audio buffer size h](j )}(hinputs:h]hinputs:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM8hj6ubj% )}(hhh]h)}(hNew audio buffer sizeh]hNew audio buffer size}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj6ubah}(h]h ]h"]h$]h&]uh1j$ hj6ubeh}(h]h ]h"]h$]h&]uh1j hhhM8hj6ubj )}(hNoutputs: The ioctl return value is the new audio buffer size, or -1 on error. h](j )}(houtputs:h]houtputs:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM<hj6ubj% )}(hhh]h)}(hDThe ioctl return value is the new audio buffer size, or -1 on error.h]hDThe ioctl return value is the new audio buffer size, or -1 on error.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj6ubah}(h]h ]h"]h$]h&]uh1j$ hj6ubeh}(h]h ]h"]h$]h&]uh1j hhhM<hj6ubj )}(h:error return: - ENOSYS Not supported by this driver. h](j )}(h error return:h]h error return:}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM?hj7ubj% )}(hhh]h)}(hhh]h)}(h*ENOSYS Not supported by this driver. h]h)}(h)ENOSYS Not supported by this driver.h]h)ENOSYS Not supported by this driver.}(hj"7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hj7ubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]jj uh1hhhhM?hj7ubah}(h]h ]h"]h$]h&]uh1j$ hj7ubeh}(h]h ]h"]h$]h&]uh1j hhhM?hj6ubj )}(h(notes: Not supported by all drivers. h](j )}(hnotes:h]hnotes:}(hjL7hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhjH7ubj% )}(hhh]h)}(hNot supported by all drivers.h]hNot supported by all drivers.}(hj]7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjZ7ubah}(h]h ]h"]h$]h&]uh1j$ hjH7ubeh}(h]h ]h"]h$]h&]uh1j hhhMEhj6ubeh}(h]h ]h"]h$]h&]uh1j hjx6ubeh}(h]h ]h"]h$]h&]uh1j$ hjf6ubeh}(h]h ]h"]h$]h&]uh1j hhhMEhj hhubeh}(h]h ]h"]h$]h&]uh1j hhhhhNhNubh)}(h.DVD_READ_STRUCT Read structureh]h.DVD_READ_STRUCT Read structure}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMGhhhhubj5)}(hXusage:: dvd_struct s; ioctl(fd, DVD_READ_STRUCT, &s); inputs: dvd_struct structure, containing: =================== ========================================== type specifies the information desired, one of DVD_STRUCT_PHYSICAL, DVD_STRUCT_COPYRIGHT, DVD_STRUCT_DISCKEY, DVD_STRUCT_BCA, DVD_STRUCT_MANUFACT physical.layer_num desired layer, indexed from 0 copyright.layer_num desired layer, indexed from 0 disckey.agid =================== ========================================== outputs: dvd_struct structure, containing: =================== ================================ physical for type == DVD_STRUCT_PHYSICAL copyright for type == DVD_STRUCT_COPYRIGHT disckey.value for type == DVD_STRUCT_DISCKEY bca.{len,value} for type == DVD_STRUCT_BCA manufact.{len,valu} for type == DVD_STRUCT_MANUFACT =================== ================================ error returns: - EINVAL physical.layer_num exceeds number of layers - EIO Received invalid response from drive h](h)}(husage::h]husage:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj7ubjF )}(h.dvd_struct s; ioctl(fd, DVD_READ_STRUCT, &s);h]h.dvd_struct s; ioctl(fd, DVD_READ_STRUCT, &s);}hj7sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMKhj7ubj )}(hhh](j )}(hXinputs: dvd_struct structure, containing: =================== ========================================== type specifies the information desired, one of DVD_STRUCT_PHYSICAL, DVD_STRUCT_COPYRIGHT, DVD_STRUCT_DISCKEY, DVD_STRUCT_BCA, DVD_STRUCT_MANUFACT physical.layer_num desired layer, indexed from 0 copyright.layer_num desired layer, indexed from 0 disckey.agid =================== ========================================== h](j )}(hinputs:h]hinputs:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMZhj7ubj% )}(hhh](j5)}(h"dvd_struct structure, containing: h]h)}(h!dvd_struct structure, containing:h]h!dvd_struct structure, containing:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhj7ubah}(h]h ]h"]h$]h&]uh1j4hhhMPhj7ubj;)}(hhh]j@)}(hhh](jE)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhj7ubjE)}(hhh]h}(h]h ]h"]h$]h&]colwidthK*uh1jDhj7ubj[)}(hhh](j`)}(hhh](je)}(hhh]h)}(htypeh]htype}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj 8ubah}(h]h ]h"]h$]h&]uh1jdhj 8ubje)}(hhh]h)}(hspecifies the information desired, one of DVD_STRUCT_PHYSICAL, DVD_STRUCT_COPYRIGHT, DVD_STRUCT_DISCKEY, DVD_STRUCT_BCA, DVD_STRUCT_MANUFACTh]hspecifies the information desired, one of DVD_STRUCT_PHYSICAL, DVD_STRUCT_COPYRIGHT, DVD_STRUCT_DISCKEY, DVD_STRUCT_BCA, DVD_STRUCT_MANUFACT}(hj'8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj$8ubah}(h]h ]h"]h$]h&]uh1jdhj 8ubeh}(h]h ]h"]h$]h&]uh1j_hj8ubj`)}(hhh](je)}(hhh]h)}(hphysical.layer_numh]hphysical.layer_num}(hjG8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjD8ubah}(h]h ]h"]h$]h&]uh1jdhjA8ubje)}(hhh]h)}(hdesired layer, indexed from 0h]hdesired layer, indexed from 0}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhj[8ubah}(h]h ]h"]h$]h&]uh1jdhjA8ubeh}(h]h ]h"]h$]h&]uh1j_hj8ubj`)}(hhh](je)}(hhh]h)}(hcopyright.layer_numh]hcopyright.layer_num}(hj~8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj{8ubah}(h]h ]h"]h$]h&]uh1jdhjx8ubje)}(hhh]h)}(hdesired layer, indexed from 0h]hdesired layer, indexed from 0}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj8ubah}(h]h ]h"]h$]h&]uh1jdhjx8ubeh}(h]h ]h"]h$]h&]uh1j_hj8ubj`)}(hhh](je)}(hhh]h)}(h disckey.agidh]h disckey.agid}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhj8ubah}(h]h ]h"]h$]h&]uh1jdhj8ubje)}(hhh]h}(h]h ]h"]h$]h&]uh1jdhj8ubeh}(h]h ]h"]h$]h&]uh1j_hj8ubeh}(h]h ]h"]h$]h&]uh1jZhj7ubeh}(h]h ]h"]h$]h&]colsKuh1j?hj7ubah}(h]h ]h"]h$]h&]uh1j:hj7ubeh}(h]h ]h"]h$]h&]uh1j$ hj7ubeh}(h]h ]h"]h$]h&]uh1j hhhMZhj7ubj )}(hXoutputs: dvd_struct structure, containing: =================== ================================ physical for type == DVD_STRUCT_PHYSICAL copyright for type == DVD_STRUCT_COPYRIGHT disckey.value for type == DVD_STRUCT_DISCKEY bca.{len,value} for type == DVD_STRUCT_BCA manufact.{len,valu} for type == DVD_STRUCT_MANUFACT =================== ================================ h](j )}(houtputs:h]houtputs:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMehj8ubj% )}(hhh](j5)}(h"dvd_struct structure, containing: h]h)}(h!dvd_struct structure, containing:h]h!dvd_struct structure, containing:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hj 9ubah}(h]h ]h"]h$]h&]uh1j4hhhM]hj 9ubj;)}(hhh]j@)}(hhh](jE)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jDhj'9ubjE)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jDhj'9ubj[)}(hhh](j`)}(hhh](je)}(hhh]h)}(hphysicalh]hphysical}(hjG9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hjD9ubah}(h]h ]h"]h$]h&]uh1jdhjA9ubje)}(hhh]h)}(hfor type == DVD_STRUCT_PHYSICALh]hfor type == DVD_STRUCT_PHYSICAL}(hj^9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj[9ubah}(h]h ]h"]h$]h&]uh1jdhjA9ubeh}(h]h ]h"]h$]h&]uh1j_hj>9ubj`)}(hhh](je)}(hhh]h)}(h copyrighth]h copyright}(hj~9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahj{9ubah}(h]h ]h"]h$]h&]uh1jdhjx9ubje)}(hhh]h)}(h for type == DVD_STRUCT_COPYRIGHTh]h for type == DVD_STRUCT_COPYRIGHT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahj9ubah}(h]h ]h"]h$]h&]uh1jdhjx9ubeh}(h]h ]h"]h$]h&]uh1j_hj>9ubj`)}(hhh](je)}(hhh]h)}(h disckey.valueh]h disckey.value}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj9ubah}(h]h ]h"]h$]h&]uh1jdhj9ubje)}(hhh]h)}(hfor type == DVD_STRUCT_DISCKEYh]hfor type == DVD_STRUCT_DISCKEY}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj9ubah}(h]h ]h"]h$]h&]uh1jdhj9ubeh}(h]h ]h"]h$]h&]uh1j_hj>9ubj`)}(hhh](je)}(hhh]h)}(hbca.{len,value}h]hbca.{len,value}}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj9ubah}(h]h ]h"]h$]h&]uh1jdhj9ubje)}(hhh]h)}(hfor type == DVD_STRUCT_BCAh]hfor type == DVD_STRUCT_BCA}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj:ubah}(h]h ]h"]h$]h&]uh1jdhj9ubeh}(h]h ]h"]h$]h&]uh1j_hj>9ubj`)}(hhh](je)}(hhh]h)}(hmanufact.{len,valu}h]hmanufact.{len,valu}}(hj#:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj :ubah}(h]h ]h"]h$]h&]uh1jdhj:ubje)}(hhh]h)}(hfor type == DVD_STRUCT_MANUFACTh]hfor type == DVD_STRUCT_MANUFACT}(hj::hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj7:ubah}(h]h ]h"]h$]h&]uh1jdhj:ubeh}(h]h ]h"]h$]h&]uh1j_hj>9ubeh}(h]h ]h"]h$]h&]uh1jZhj'9ubeh}(h]h ]h"]h$]h&]colsKuh1j?hj$9ubah}(h]h ]h"]h$]h&]uh1j:hj 9ubeh}(h]h ]h"]h$]h&]uh1j$ hj8ubeh}(h]h ]h"]h$]h&]uh1j hhhMehj7ubj )}(h~error returns: - EINVAL physical.layer_num exceeds number of layers - EIO Received invalid response from drive h](j )}(herror returns:h]herror returns:}(hjw:hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMkhjs:ubj% )}(hhh]h)}(hhh](h)}(h7EINVAL physical.layer_num exceeds number of layersh]h)}(hj:h]h7EINVAL physical.layer_num exceeds number of layers}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubh)}(h3EIO Received invalid response from drive h]h)}(h0EIO Received invalid response from driveh]h0EIO Received invalid response from drive}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhhj:ubah}(h]h ]h"]h$]h&]uh1j$ hjs:ubeh}(h]h ]h"]h$]h&]uh1j hhhMkhj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1j4hhhMIhhhhubh)}(h/DVD_WRITE_STRUCT Write structureh]h/DVD_WRITE_STRUCT Write structure}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhhhhubj5)}(h!Not implemented, as of 2.6.8.1 h]h)}(hNot implemented, as of 2.6.8.1h]hNot implemented, as of 2.6.8.1}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohj:ubah}(h]h ]h"]h$]h&]uh1j4hhhMohhhhubh)}(h.DVD_AUTH Authenticationh]h.DVD_AUTH Authentication}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshhhhubj5)}(husage:: dvd_authinfo ai; ioctl(fd, DVD_AUTH, &ai); inputs: dvd_authinfo structure. See outputs: dvd_authinfo structure. error return: - ENOTTY ai.type not recognized. h](h)}(husage::h]husage:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhj ;ubjF )}(h+dvd_authinfo ai; ioctl(fd, DVD_AUTH, &ai);h]h+dvd_authinfo ai; ioctl(fd, DVD_AUTH, &ai);}hj;sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMwhj ;ubj )}(hhh](j )}(h6inputs: dvd_authinfo structure. See h](j )}(hinputs:h]hinputs:}(hj3;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM}hj/;ubj% )}(hhh]h)}(h,dvd_authinfo structure. See h]h,dvd_authinfo structure. See }(hjD;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjA;ubah}(h]h ]h"]h$]h&]uh1j$ hj/;ubeh}(h]h ]h"]h$]h&]uh1j hhhM}hj,;ubj )}(h"outputs: dvd_authinfo structure. h](j )}(houtputs:h]houtputs:}(hjb;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj^;ubj% )}(hhh]h)}(hdvd_authinfo structure.h]hdvd_authinfo structure.}(hjs;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjp;ubah}(h]h ]h"]h$]h&]uh1j$ hj^;ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj,;ubj )}(h6error return: - ENOTTY ai.type not recognized. h](j )}(h error return:h]h error return:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj;ubj% )}(hhh]h)}(hhh]h)}(h&ENOTTY ai.type not recognized. h]h)}(h#ENOTTY ai.type not recognized.h]h#ENOTTY ai.type not recognized.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]jj uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1j$ hj;ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj,;ubeh}(h]h ]h"]h$]h&]uh1j hj ;ubeh}(h]h ]h"]h$]h&]uh1j4hhhMuhhhhubj )}(hhh](j )}(hXxCDROM_SEND_PACKET send a packet to the drive usage:: struct cdrom_generic_command cgc; ioctl(fd, CDROM_SEND_PACKET, &cgc); inputs: cdrom_generic_command structure containing the packet to send. outputs: none cdrom_generic_command structure containing results. error return: - EIO command failed. - EPERM Operation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIO - EINVAL cgc.data_direction not set h](j )}(hCDROM_SEND_PACKETh]hCDROM_SEND_PACKET}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj;ubj% )}(hhh](h)}(hsend a packet to the driveh]hsend a packet to the drive}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubh)}(husage::h]husage:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubjF )}(hFstruct cdrom_generic_command cgc; ioctl(fd, CDROM_SEND_PACKET, &cgc);h]hFstruct cdrom_generic_command cgc; ioctl(fd, CDROM_SEND_PACKET, &cgc);}hj<sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhj;ubj )}(hhh](j )}(hHinputs: cdrom_generic_command structure containing the packet to send. h](j )}(hinputs:h]hinputs:}(hj$<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj <ubj% )}(hhh]h)}(h>cdrom_generic_command structure containing the packet to send.h]h>cdrom_generic_command structure containing the packet to send.}(hj5<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2<ubah}(h]h ]h"]h$]h&]uh1j$ hj <ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj<ubj )}(hIoutputs: none cdrom_generic_command structure containing results. h](j )}(houtputs:h]houtputs:}(hjS<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjO<ubj% )}(hhh](j5)}(hnone h]h)}(hnoneh]hnone}(hjh<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjd<ubah}(h]h ]h"]h$]h&]uh1j4hhhMhja<ubh)}(h3cdrom_generic_command structure containing results.h]h3cdrom_generic_command structure containing results.}(hj|<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhja<ubeh}(h]h ]h"]h$]h&]uh1j$ hjO<ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj<ubj )}(hXCerror return: - EIO command failed. - EPERM Operation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIO - EINVAL cgc.data_direction not set h](j )}(h error return:h]h error return:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj<ubj% )}(hhh]h)}(hhh](h)}(h EIO command failed.h](h)}(hEIOh]hEIO}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubj5)}(hcommand failed.h]h)}(hj<h]hcommand failed.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj<ubeh}(h]h ]h"]h$]h&]uh1hhj<ubh)}(hEPERM Operation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIOh](h)}(hEPERMh]hEPERM}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubj5)}(hOperation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIOh]h)}(hOperation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIOh]hOperation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIO}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj<ubeh}(h]h ]h"]h$]h&]uh1hhj<ubh)}(h1EINVAL cgc.data_direction not set h](h)}(hEINVALh]hEINVAL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj =ubj5)}(hcgc.data_direction not set h]h)}(hcgc.data_direction not seth]hcgc.data_direction not set}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj =ubeh}(h]h ]h"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]jj uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1j$ hj<ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj<ubeh}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ]h"]h$]h&]uh1j$ hj;ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj;ubj )}(hX(CDROM_NEXT_WRITABLE get next writable block usage:: long next; ioctl(fd, CDROM_NEXT_WRITABLE, &next); inputs: none outputs: The next writable block. notes: If the device does not support this ioctl directly, the ioctl will return CDROM_LAST_WRITTEN + 7. h](j )}(hCDROM_NEXT_WRITABLEh]hCDROM_NEXT_WRITABLE}(hje=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhja=ubj% )}(hhh](h)}(hget next writable blockh]hget next writable block}(hjv=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjs=ubh)}(husage::h]husage:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjs=ubjF )}(h2long next; ioctl(fd, CDROM_NEXT_WRITABLE, &next);h]h2long next; ioctl(fd, CDROM_NEXT_WRITABLE, &next);}hj=sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjs=ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj=ubj% )}(hhh]h)}(hnoneh]hnone}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1j$ hj=ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj=ubj )}(h#outputs: The next writable block. h](j )}(houtputs:h]houtputs:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj=ubj% )}(hhh]h)}(hThe next writable block.h]hThe next writable block.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1j$ hj=ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj=ubj )}(hrnotes: If the device does not support this ioctl directly, the ioctl will return CDROM_LAST_WRITTEN + 7. h](j )}(hnotes:h]hnotes:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj% )}(hhh](j5)}(h8If the device does not support this ioctl directly, the h]h)}(h7If the device does not support this ioctl directly, theh]h7If the device does not support this ioctl directly, the}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j4hhhMhj>ubh)}(h)ioctl will return CDROM_LAST_WRITTEN + 7.h]h)ioctl will return CDROM_LAST_WRITTEN + 7.}(hj.>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubeh}(h]h ]h"]h$]h&]uh1j$ hj>ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj=ubeh}(h]h ]h"]h$]h&]uh1j hjs=ubeh}(h]h ]h"]h$]h&]uh1j$ hja=ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj;hhubj )}(hXCDROM_LAST_WRITTEN get last block written on disc usage:: long last; ioctl(fd, CDROM_LAST_WRITTEN, &last); inputs: none outputs: The last block written on disc notes: If the device does not support this ioctl directly, the result is derived from the disc's table of contents. If the table of contents can't be read, this ioctl returns an error.h](j )}(hCDROM_LAST_WRITTENh]hCDROM_LAST_WRITTEN}(hj^>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjZ>ubj% )}(hhh](h)}(hget last block written on disch]hget last block written on disc}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl>ubh)}(husage::h]husage:}(hj}>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjl>ubjF )}(h1long last; ioctl(fd, CDROM_LAST_WRITTEN, &last);h]h1long last; ioctl(fd, CDROM_LAST_WRITTEN, &last);}hj>sbah}(h]h ]h"]h$]h&]jU jV uh1jE hhhMhjl>ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj% )}(hhh]h)}(hnoneh]hnone}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j$ hj>ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj )}(h)outputs: The last block written on disc h](j )}(houtputs:h]houtputs:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj% )}(hhh]h)}(hThe last block written on disch]hThe last block written on disc}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j$ hj>ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj )}(hnotes: If the device does not support this ioctl directly, the result is derived from the disc's table of contents. If the table of contents can't be read, this ioctl returns an error.h](j )}(hnotes:h]hnotes:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj>ubj% )}(hhh]h)}(hIf the device does not support this ioctl directly, the result is derived from the disc's table of contents. If the table of contents can't be read, this ioctl returns an error.h]hIf the device does not support this ioctl directly, the result is derived from the disc’s table of contents. If the table of contents can’t be read, this ioctl returns an error.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ?ubah}(h]h ]h"]h$]h&]uh1j$ hj>ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj>ubeh}(h]h ]h"]h$]h&]uh1j hjl>ubeh}(h]h ]h"]h$]h&]uh1j$ hjZ>ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj;hhubeh}(h]h ]h"]h$]h&]uh1j hhhhhNhNubeh}(h]summary-of-cdrom-ioctl-callsah ]h"]summary of cdrom ioctl callsah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjdfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjk?error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jF?jC?s nametypes}jF?sh}jC?hs footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.