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]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}(hhhhhNhNubah}(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:}(hjhhhNhNubah}(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&]colwidthKuh1j0hj-ubj1)}(hhh]h}(h]h ]h"]h$]h&]colwidthK/uh1j0hj-ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h CDROMPAUSEh]h CDROMPAUSE}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjRubah}(h]h ]h"]h$]h&]uh1jPhjMubjQ)}(hhh]h)}(hPause Audio Operationh]hPause Audio Operation}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjiubah}(h]h ]h"]h$]h&]uh1jPhjMubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMRESUMEh]h CDROMRESUME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hResume paused Audio Operationh]hResume paused Audio Operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMPLAYMSFh]h CDROMPLAYMSF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMPLAYTRKINDh]hCDROMPLAYTRKIND}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(h(Play Audio Track/index (struct cdrom_ti)h]h(Play Audio Track/index (struct cdrom_ti)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADTOCHDRh]hCDROMREADTOCHDR}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj.ubah}(h]h ]h"]h$]h&]uh1jPhj+ubjQ)}(hhh]h)}(h%Read TOC header (struct cdrom_tochdr)h]h%Read TOC header (struct cdrom_tochdr)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEubah}(h]h ]h"]h$]h&]uh1jPhj+ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADTOCENTRYh]hCDROMREADTOCENTRY}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjeubah}(h]h ]h"]h$]h&]uh1jPhjbubjQ)}(hhh]h)}(h&Read TOC entry (struct cdrom_tocentry)h]h&Read TOC entry (struct cdrom_tocentry)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj|ubah}(h]h ]h"]h$]h&]uh1jPhjbubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMSTOPh]h CDROMSTOP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hStop the cdrom driveh]hStop the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMSTARTh]h CDROMSTART}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hStart the cdrom driveh]hStart the cdrom drive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMEJECTh]h CDROMEJECT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hEjects the cdrom mediah]hEjects the cdrom media}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj!ubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMVOLCTRLh]h CDROMVOLCTRL}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubah}(h]h ]h"]h$]h&]uh1jPhj>ubjQ)}(hhh]h)}(h,Control output volume (struct cdrom_volctrl)h]h,Control output volume (struct cdrom_volctrl)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXubah}(h]h ]h"]h$]h&]uh1jPhj>ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMSUBCHNLh]h CDROMSUBCHNL}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjxubah}(h]h ]h"]h$]h&]uh1jPhjuubjQ)}(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&]uh1jPhjuubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADMODE2h]hCDROMREADMODE2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADMODE1h]hCDROMREADMODE1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADAUDIOh]hCDROMREADAUDIO}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(h(struct cdrom_read_audio)h]h(struct cdrom_read_audio)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj4ubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMEJECT_SWh]h CDROMEJECT_SW}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjTubah}(h]h ]h"]h$]h&]uh1jPhjQubjQ)}(hhh]h)}(h"enable(1)/disable(0) auto-ejectingh]h"enable(1)/disable(0) auto-ejecting}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjkubah}(h]h ]h"]h$]h&]uh1jPhjQubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMMULTISESSIONh]hCDROMMULTISESSION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROM_GET_MCNh]h CDROM_GET_MCN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROM_GET_UPCh]h CDROM_GET_UPC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(h&Deprecated, use CDROM_GET_MCN instead.h]h&Deprecated, use CDROM_GET_MCN instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMRESETh]h CDROMRESET}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj0ubah}(h]h ]h"]h$]h&]uh1jPhj-ubjQ)}(hhh]h)}(hhard-reset the driveh]hhard-reset the drive}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjGubah}(h]h ]h"]h$]h&]uh1jPhj-ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMVOLREADh]h CDROMVOLREAD}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjgubah}(h]h ]h"]h$]h&]uh1jPhjdubjQ)}(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)hj~ubah}(h]h ]h"]h$]h&]uh1jPhjdubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMREADRAWh]h CDROMREADRAW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMREADCOOKEDh]hCDROMREADCOOKED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(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&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMSEEKh]h CDROMSEEK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hseek msf addressh]hseek msf address}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hj#ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMPLAYBLKh]h CDROMPLAYBLK}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjCubah}(h]h ]h"]h$]h&]uh1jPhj@ubjQ)}(hhh]h)}(h scsi-cd only, (struct cdrom_blk)h]h scsi-cd only, (struct cdrom_blk)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjZubah}(h]h ]h"]h$]h&]uh1jPhj@ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROMREADALLh]h CDROMREADALL}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjzubah}(h]h ]h"]h$]h&]uh1jPhjwubjQ)}(hhh]h)}(hread all 2646 bytesh]hread all 2646 bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1jPhjwubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMGETSPINDOWNh]hCDROMGETSPINDOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hreturn 4-bit spindown valueh]hreturn 4-bit spindown value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMSETSPINDOWNh]hCDROMSETSPINDOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hset 4-bit spindown valueh]hset 4-bit spindown value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMCLOSETRAYh]hCDROMCLOSETRAY}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hpendant of CDROMEJECTh]hpendant of CDROMEJECT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hj6ubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_SET_OPTIONSh]hCDROM_SET_OPTIONS}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjVubah}(h]h ]h"]h$]h&]uh1jPhjSubjQ)}(hhh]h)}(hSet behavior optionsh]hSet behavior options}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjmubah}(h]h ]h"]h$]h&]uh1jPhjSubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_CLEAR_OPTIONSh]hCDROM_CLEAR_OPTIONS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hClear behavior optionsh]hClear behavior options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_SELECT_SPEEDh]hCDROM_SELECT_SPEED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hSet the CD-ROM speedh]hSet the CD-ROM speed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_SELECT_DISCh]hCDROM_SELECT_DISC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjubah}(h]h ]h"]h$]h&]uh1jPhjubjQ)}(hhh]h)}(hSelect disc (for juke-boxes)h]hSelect disc (for juke-boxes)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjubah}(h]h ]h"]h$]h&]uh1jPhjubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_MEDIA_CHANGEDh]hCDROM_MEDIA_CHANGED}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hj2ubah}(h]h ]h"]h$]h&]uh1jPhj/ubjQ)}(hhh]h)}(hCheck is media changedh]hCheck is media changed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjIubah}(h]h ]h"]h$]h&]uh1jPhj/ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_TIMED_MEDIA_CHANGEh]hCDROM_TIMED_MEDIA_CHANGE}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjiubah}(h]h ]h"]h$]h&]uh1jPhjfubjQ)}(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&]uh1jPhjfubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_DRIVE_STATUSh]hCDROM_DRIVE_STATUS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hGet number of slotsh]hGet number of slots}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hj% ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_LOCKDOORh]hCDROM_LOCKDOOR}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjE ubah}(h]h ]h"]h$]h&]uh1jPhjB ubjQ)}(hhh]h)}(hlock or unlock doorh]hlock or unlock door}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hj\ ubah}(h]h ]h"]h$]h&]uh1jPhjB ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(h CDROM_DEBUGh]h CDROM_DEBUG}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hj| ubah}(h]h ]h"]h$]h&]uh1jPhjy ubjQ)}(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&]uh1jPhjy ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_GET_CAPABILITYh]hCDROM_GET_CAPABILITY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hget capabilitiesh]hget capabilities}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROMAUDIOBUFSIZh]hCDROMAUDIOBUFSIZ}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(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&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hDVD_READ_STRUCTh]hDVD_READ_STRUCT}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChj! ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hRead structureh]hRead structure}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChj8 ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hDVD_WRITE_STRUCTh]hDVD_WRITE_STRUCT}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjX ubah}(h]h ]h"]h$]h&]uh1jPhjU ubjQ)}(hhh]h)}(hWrite structureh]hWrite structure}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjo ubah}(h]h ]h"]h$]h&]uh1jPhjU ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hDVD_AUTHh]hDVD_AUTH}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hAuthenticationh]hAuthentication}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_SEND_PACKETh]hCDROM_SEND_PACKET}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(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&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_NEXT_WRITABLEh]hCDROM_NEXT_WRITABLE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubjQ)}(hhh]h)}(hget next writable blockh]hget next writable block}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhj ubah}(h]h ]h"]h$]h&]uh1jPhj ubeh}(h]h ]h"]h$]h&]uh1jKhjHubjL)}(hhh](jQ)}(hhh]h)}(hCDROM_LAST_WRITTENh]hCDROM_LAST_WRITTEN}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhj4 ubah}(h]h ]h"]h$]h&]uh1jPhj1 ubjQ)}(hhh]h)}(hget last block written on disch]hget last block written on disc}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjK ubah}(h]h ]h"]h$]h&]uh1jPhj1 ubeh}(h]h ]h"]h$]h&]uh1jKhjHubeh}(h]h ]h"]h$]h&]uh1jFhj-ubeh}(h]h ]h"]h$]h&]colsKuh1j+hj(ubah}(h]h ]h"]h$]h&]uh1j&hj"ubah}(h]h ]h"]h$]h&]uh1j hhhKhhhhubh)}(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&]uh1hhhhKQhhhhubj!)}(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&]uh1j hhhKShhhhubj )}(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:}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghj ubh literal_block)}(hioctl(fd, CDROMPAUSE, 0);h]hioctl(fd, CDROMPAUSE, 0);}hj3 sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j1 hhhKihj ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKnhjF ubj )}(hhh]h)}(hnoneh]hnone}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhjX ubah}(h]h ]h"]h$]h&]uh1j hjF ubeh}(h]h ]h"]h$]h&]uh1j hhhKnhjC ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKrhju ubj )}(hhh]h)}(hnoneh]hnone}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhj ubah}(h]h ]h"]h$]h&]uh1j hju ubeh}(h]h ]h"]h$]h&]uh1j hhhKrhjC 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&]hhuh1hhhhKuhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKvhjC 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 ubj2 )}(hioctl(fd, CDROMRESUME, 0);h]hioctl(fd, CDROMRESUME, 0);}hj) sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhK~hj ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj: ubj )}(hhh]h)}(hnoneh]hnone}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjL ubah}(h]h ]h"]h$]h&]uh1j hj: ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj7 ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhji ubj )}(hhh]h)}(hnoneh]hnone}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{ ubah}(h]h ]h"]h$]h&]uh1j hji ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj7 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&]hhuh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj7 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj ubj )}(hhh](h)}(hPlay Audio MSFh]hPlay Audio MSF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(h(struct cdrom_msf)h]h(struct cdrom_msf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubj2 )}(h5struct cdrom_msf msf; ioctl(fd, CDROMPLAYMSF, &msf);h]h5struct cdrom_msf msf; ioctl(fd, CDROMPLAYMSF, &msf);}hj+sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhKhj ubj )}(hhh](j )}(hDinputs: cdrom_msf structure, describing a segment of music to play h](j )}(hinputs:h]hinputs:}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj<ubj )}(hhh]h)}(h:cdrom_msf structure, describing a segment of music to playh]h:cdrom_msf structure, describing a segment of music to play}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjNubah}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ]h"]h$]h&]uh1j hhhKhj9ubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjkubj )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}ubah}(h]h ]h"]h$]h&]uh1j hjkubeh}(h]h ]h"]h$]h&]uh1j hhhKhj9ubj )}(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&]hhuh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhj9ubj )}(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)}(hjh]h%MSF stands for minutes-seconds-frames}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(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&]uh1hhhhKhj"ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]hhuh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhKhj9ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj^ubj )}(hhh](h)}(hPlay Audio Track/indexh]hPlay Audio Track/index}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjpubh)}(h(struct cdrom_ti)h]h(struct cdrom_ti)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjpubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjpubj2 )}(h5struct cdrom_ti ti; ioctl(fd, CDROMPLAYTRKIND, &ti);h]h5struct cdrom_ti ti; ioctl(fd, CDROMPLAYTRKIND, &ti);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhKhjpubj )}(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:}(hjhhhNhNubah}(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&]hhuh1hhhhKhjubah}(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:}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjNubj )}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]hhuh1hhhhKhj`ubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1j hhhKhjubeh}(h]h ]h"]h$]h&]uh1j hjpubeh}(h]h ]h"]h$]h&]uh1j hj^ubeh}(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&]uh1hhhhKhjubj2 )}(h:cdrom_tochdr header; ioctl(fd, CDROMREADTOCHDR, &header);h]h:cdrom_tochdr header; ioctl(fd, CDROMREADTOCHDR, &header);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhKhjubj )}(hhh](j )}(h inputs: cdrom_tochdr structure h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(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:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhj!ubj )}(hhh]h)}(hcdrom_tochdr structureh]hcdrom_tochdr structure}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj3ubah}(h]h ]h"]h$]h&]uh1j hj!ubeh}(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:}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjPubj )}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]hhuh1hhhhKhjbubah}(h]h ]h"]h$]h&]uh1j hjPubeh}(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&]uh1hhhhKhjubj2 )}(hCstruct cdrom_tocentry entry; ioctl(fd, CDROMREADTOCENTRY, &entry);h]hCstruct cdrom_tocentry entry; ioctl(fd, CDROMREADTOCENTRY, &entry);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhKhjubj )}(hhh](j )}(h"inputs: cdrom_tocentry structure h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjubj )}(hhh]h)}(hcdrom_tocentry structureh]hcdrom_tocentry structure}(hj hhhNhNubah}(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 hhhKhj#ubj )}(hhh]h)}(hcdrom_tocentry structureh]hcdrom_tocentry structure}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj5ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(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:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhKhjRubj )}(hhh]h)}(hhh](h)}(h'ENOSYS cd drive not audio-capable.h]h)}(hjlh]h'ENOSYS cd drive not audio-capable.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjjubah}(h]h ]h"]h$]h&]uh1hhjgubh)}(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&]uh1hhjgubh)}(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&]uh1hhjgubh)}(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&]uh1hhjgubeh}(h]h ]h"]h$]h&]hhuh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1j hjRubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(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 address h]h)}(h$LBA stands for logical block addressh]h$LBA stands for logical block address}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]hhuh1hhhhKhjubah}(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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj[ubj )}(hhh](h)}(hStop the cdrom driveh]hStop the cdrom drive}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjmubh)}(husage::h]husage:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjmubj2 )}(hioctl(fd, CDROMSTOP, 0);h]hioctl(fd, CDROMSTOP, 0);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhM hjmubj )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj 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:}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj=ubj )}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]hhuh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ]h"]h$]h&]uh1j hj[ubeh}(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 hjubj2 )}(hioctl(fd, CDROMSTART, 0);h]hioctl(fd, CDROMSTART, 0);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hjubah}(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:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM.hj1ubj )}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hjIubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]hhuh1hhhhM.hjCubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(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:}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM4hjsubj )}(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&]hhuh1hhhhM1hjubah}(h]h ]h"]h$]h&]uh1j hjsubeh}(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&]hhuh1hhhhM7hjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjubj2 )}(hioctl(fd, CDROMEJECT, 0);h]hioctl(fd, CDROMEJECT, 0);}hj sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhM<hjubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMAhjubj )}(hhh]h)}(hnoneh]hnone}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMAhjubj )}(houtputs: none h](j )}(houtputs:h]houtputs:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhjKubj )}(hhh]h)}(hnoneh]hnone}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj]ubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1j hhhMEhjubj )}(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:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMIhjzubj )}(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&]hhuh1hhhhMHhjubah}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ]h"]h$]h&]uh1j hhhMIhjubj )}(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&]hhuh1hhhhMLhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMOhjubeh}(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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhj9ubh)}(husage::h]husage:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj9ubj2 )}(hioctl(fd, CDROMCLOSETRAY, 0);h]hioctl(fd, CDROMCLOSETRAY, 0);}hjXsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMWhj9ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM\hjiubj )}(hhh]h)}(hnoneh]hnone}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM[hj{ubah}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ]h"]h$]h&]uh1j hhhM\hjfubj )}(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`hjfubj )}(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&]uh1hhhhMdhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]hhuh1hhhh2Mchjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMdhjfubj )}(h'notes: - See CDROM_LOCKDOOR, below. h](j )}(hnotes:h]hnotes:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMjhj ubj )}(hhh]h)}(hhh]h)}(hSee CDROM_LOCKDOOR, below. h]h)}(hSee CDROM_LOCKDOOR, below.h]hSee CDROM_LOCKDOOR, below.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghj8ubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]hhuh1hhhhMghj2ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hhhMjhjfubeh}(h]h ]h"]h$]h&]uh1j hj9ubeh}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjtubj )}(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&]uh1hhhhMphjubj2 )}(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&]jA jB uh1j1 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{hjubah}(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:}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj&ubah}(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 hjtubeh}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjhubj )}(hhh](h)}(hGet the drive's volume settingh]h Get the drive’s volume setting}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjzubh)}(h(struct cdrom_volctrl)h]h(struct cdrom_volctrl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjzubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjzubj2 )}(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&]jA jB uh1j1 hhhMhjzubj )}(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&]uh1hhhhMhjubah}(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:}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ]h"]h$]h&]uh1j hjhubeh}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjjubj )}(hhh](h)}(hRead subchannel datah]hRead subchannel data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj|ubh)}(h(struct cdrom_subchnl)h]h(struct cdrom_subchnl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj|ubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj|ubj2 )}(h5struct cdrom_subchnl q; ioctl(fd, CDROMSUBCHNL, &q);h]h5struct cdrom_subchnl q; ioctl(fd, CDROMSUBCHNL, &q);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj|ubj )}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(hhh]h)}(hhh](h)}(h'ENOSYS cd drive not audio-capable.h]h)}(hj2h]h'ENOSYS cd drive not audio-capable.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjGubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]hhuh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjqubj )}(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&]hhuh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1j hjjubeh}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj2 )}(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&]jA jB uh1j1 hhhMhjubj )}(hhh](j )}(hcinputs: cdrom_msf structure indicating an address to read. Only the start values are significant. h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(h4outputs: Data written to address provided by user. h](j )}(houtputs:h]houtputs:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjRubj )}(hhh]h)}(h)Data written to address provided by user.h]h)Data written to address provided by user.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjdubah}(h]h ]h"]h$]h&]uh1j hjRubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(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&]hhuh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(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.}(hjhhhNhNubah}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj2 )}(hubj )}(hhh](h)}(h(struct cdrom_read_audio)h]h(struct cdrom_read_audio)}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPubh)}(husage::h]husage:}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPubj2 )}(hubeh}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj )}(hXCDROMEJECT_SW enable(1)/disable(0) auto-ejecting usage:: int val; ioctl(fd, CDROMEJECT_SW, val); inputs: Flag specifying auto-eject flag. outputs: none error return: - ENOSYS Drive is not capable of ejecting. - EBUSY Door is locked h](j )}(h CDROMEJECT_SWh]h CDROMEJECT_SW}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM'hjwubj )}(hhh](h)}(h"enable(1)/disable(0) auto-ejectingh]h"enable(1)/disable(0) auto-ejecting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(husage::h]husage:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj2 )}(h(int val; ioctl(fd, CDROMEJECT_SW, val);h]h(int val; ioctl(fd, CDROMEJECT_SW, val);}hjsbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhjubj )}(hhh](j )}(h*inputs: Flag specifying auto-eject flag. h](j )}(hinputs:h]hinputs:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjubj )}(hhh]h)}(h Flag specifying auto-eject flag.h]h Flag specifying auto-eject flag.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(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 hhhM hjubj )}(hhh]h)}(hnoneh]hnone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hhhM hjubj )}(h^error return: - ENOSYS Drive is not capable of ejecting. - EBUSY Door is locked h](j )}(h error return:h]h error return:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM'hj ubj )}(hhh]h)}(hhh](h)}(h-ENOSYS Drive is not capable of ejecting.h]h)}(hj1 h]h-ENOSYS Drive is not capable of ejecting.}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj/ ubah}(h]h ]h"]h$]h&]uh1hhj, ubh)}(hEBUSY Door is locked h]h)}(hEBUSY Door is lockedh]hEBUSY Door is locked}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjF ubah}(h]h ]h"]h$]h&]uh1hhj, ubeh}(h]h ]h"]h$]h&]hhuh1hhhhM#hj) ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hhhM'hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]uh1j hhhM'hj hhubj )}(hXCDROMMULTISESSION Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession) usage:: struct cdrom_multisession ms_info; ioctl(fd, CDROMMULTISESSION, &ms_info); inputs: cdrom_multisession structure containing desired format. outputs: cdrom_multisession structure is filled with last_session information. error return: - EINVAL format not CDROM_MSF or CDROM_LBA h](j )}(hCDROMMULTISESSIONh]hCDROMMULTISESSION}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM?hj ubj )}(hhh](h)}(h?Obtain the start-of-last-session address of multi session disksh]h?Obtain the start-of-last-session address of multi session disks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hj ubh)}(h(struct cdrom_multisession)h]h(struct cdrom_multisession)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj ubh)}(husage::h]husage:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj ubj2 )}(hKstruct cdrom_multisession ms_info; ioctl(fd, CDROMMULTISESSION, &ms_info);h]hKstruct cdrom_multisession ms_info; ioctl(fd, CDROMMULTISESSION, &ms_info);}hj sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhM0hj ubj )}(hhh](j )}(hGinputs: cdrom_multisession structure containing desired format. h](j )}(hinputs:h]hinputs:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM7hj ubj )}(hhh](j!)}(h0cdrom_multisession structure containing desired h]h)}(h/cdrom_multisession structure containing desiredh]h/cdrom_multisession structure containing desired}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM5hj ubah}(h]h ]h"]h$]h&]uh1j hhhM5hj ubh)}(hformat.h]hformat.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hhhM7hj ubj )}(hOoutputs: cdrom_multisession structure is filled with last_session information. h](j )}(houtputs:h]houtputs:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM;hj!ubj )}(hhh]h)}(hEcdrom_multisession structure is filled with last_session information.h]hEcdrom_multisession structure is filled with last_session information.}(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 )}(h?error return: - EINVAL format not CDROM_MSF or CDROM_LBA h](j )}(h error return:h]h error return:}(hjL!hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM?hjH!ubj )}(hhh]h)}(hhh]h)}(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}(hjd!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hj`!ubah}(h]h ]h"]h$]h&]uh1hhj]!ubah}(h]h ]h"]h$]h&]hhuh1hhhhM>hjZ!ubah}(h]h ]h"]h$]h&]uh1j hjH!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!ubj2 )}(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&]jA jB uh1j1 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:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMThj"ubj )}(hhh]h)}(hUniversal Product Codeh]hUniversal Product Code}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj-"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:}(hjN"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMWhjJ"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.}(hjf"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjb"ubah}(h]h ]h"]h$]h&]uh1hhj_"ubah}(h]h ]h"]h$]h&]hhuh1hhhhMWhj\"ubah}(h]h ]h"]h$]h&]uh1j hjJ"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"ubj2 )}(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&]jA jB uh1j1 hhhM\hj"ubeh}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]hhuh1hhhhMZhj"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}(hj/#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj+#ubj )}(hhh](h)}(hhard-reset the driveh]hhard-reset the drive}(hj@#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhj=#ubh)}(husage::h]husage:}(hjN#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMqhj=#ubj2 )}(hioctl(fd, CDROMRESET, 0);h]hioctl(fd, CDROMRESET, 0);}hj\#sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMshj=#ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hjq#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMxhjm#ubj )}(hhh]h)}(hnoneh]hnone}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhj#ubah}(h]h ]h"]h$]h&]uh1j hjm#ubeh}(h]h ]h"]h$]h&]uh1j hhhMxhjj#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|hjj#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&]hhuh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjj#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 )}(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}(hj:$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj6$ubj )}(hhh](h)}(hread data in cooked modeh]hread data in cooked mode}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjH$ubh)}(husage::h]husage:}(hjY$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjH$ubj2 )}(h)ubah}(h]h ]h"]h$]h&]uh1jPhj$)ubeh}(h]h ]h"]h$]h&]uh1jKhj(ubjL)}(hhh](jQ)}(hhh]h)}(hCDO_LOCKh]hCDO_LOCK}(hja)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj^)ubah}(h]h ]h"]h$]h&]uh1jPhj[)ubjQ)}(hhh]h)}(hlock tray on open filesh]hlock tray on open files}(hjx)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hju)ubah}(h]h ]h"]h$]h&]uh1jPhj[)ubeh}(h]h ]h"]h$]h&]uh1jKhj(ubjL)}(hhh](jQ)}(hhh]h)}(hCDO_CHECK_TYPEh]hCDO_CHECK_TYPE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj)ubah}(h]h ]h"]h$]h&]uh1jPhj)ubjQ)}(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&]uh1jPhj)ubeh}(h]h ]h"]h$]h&]uh1jKhj(ubeh}(h]h ]h"]h$]h&]uh1jFhj(ubeh}(h]h ]h"]h$]h&]colsKuh1j+hj(ubah}(h]h ]h"]h$]h&]uh1j&hj~(ubeh}(h]h ]h"]h$]h&]uh1j hjl(ubeh}(h]h ]h"]h$]h&]uh1j hhhMhji(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 hhhMhji(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.}(hj3*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/*ubah}(h]h ]h"]h$]h&]uh1hhj,*ubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj)*ubah}(h]h ]h"]h$]h&]uh1j hj*ubeh}(h]h ]h"]h$]h&]uh1j hhhMhji(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 )}(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}(hjo*hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM!hjk*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 hjk*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*ubj2 )}(h1int speed; ioctl(fd, CDROM_SELECT_SPEED, speed);h]h1int speed; ioctl(fd, CDROM_SELECT_SPEED, speed);}hj*sbah}(h]h ]h"]h$]h&]jA jB uh1j1 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:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM3hj+ubj )}(hhh]h)}(hnoneh]hnone}(hj.+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:}(hjL+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM8hjH+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.}(hjd+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hj`+ubah}(h]h ]h"]h$]h&]uh1hhj]+ubah}(h]h ]h"]h$]h&]hhuh1hhhhM6hjZ+ubah}(h]h ]h"]h$]h&]uh1j hjH+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+ubj2 )}(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&]jA jB uh1j1 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}(hj",hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj,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:}(hj@,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMOhj<,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}(hjX,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjT,ubah}(h]h ]h"]h$]h&]uh1hhjQ,ubah}(h]h ]h"]h$]h&]hhuh1hhhhMMhjN,ubah}(h]h ]h"]h$]h&]uh1j hj<,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,ubj2 )}(h0int slot; ioctl(fd, CDROM_MEDIA_CHANGED, slot);h]h0int slot; ioctl(fd, CDROM_MEDIA_CHANGED, slot);}hj,sbah}(h]h ]h"]h$]h&]jA jB uh1j1 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](j!)}(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-ubj2 )}(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&]jA jB uh1j1 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:}(hj.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.}(hj/.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}(hj=.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:}(hj[.hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjW.ubj )}(hhh](j!)}(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}(hjp.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjl.ubah}(h]h ]h"]h$]h&]uh1j hhhM|hji.ubh)}(hfrom :h]hfrom :}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hji.ubj!)}(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](j1)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j0hj.ubj1)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j0hj.ubjG)}(hhh](jL)}(hhh](jQ)}(hhh]h)}(h CDS_NO_INFOh]h CDS_NO_INFO}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jPhj.ubjQ)}(hhh]h)}(hInformation not available.h]hInformation not available.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jPhj.ubeh}(h]h ]h"]h$]h&]uh1jKhj.ubjL)}(hhh](jQ)}(hhh]h)}(h CDS_NO_DISCh]h CDS_NO_DISC}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jPhj.ubjQ)}(hhh]h}(h]h ]h"]h$]h&]uh1jPhj.ubeh}(h]h ]h"]h$]h&]uh1jKhj.ubjL)}(hhh](jQ)}(hhh]h)}(h CDS_TRAY_OPENh]h CDS_TRAY_OPEN}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jPhj/ubjQ)}(hhh]h}(h]h ]h"]h$]h&]uh1jPhj/ubeh}(h]h ]h"]h$]h&]uh1jKhj.ubjL)}(hhh](jQ)}(hhh]h)}(hCDS_DRIVE_NOT_READYh]hCDS_DRIVE_NOT_READY}(hjB/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?/ubah}(h]h ]h"]h$]h&]uh1jPhj: - 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}(hjp0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjl0ubj )}(hhh](h)}(hGet disc type, etc.h]hGet disc type, etc.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~0ubh)}(husage::h]husage:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~0ubj2 )}(h ioctl(fd, CDROM_DISC_STATUS, 0);h]h ioctl(fd, CDROM_DISC_STATUS, 0);}hj0sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj~0ubj )}(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](j!)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j hhhMhj0ubh)}(hfrom :h]hfrom :}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubj!)}(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)}(hj!1h]h CDS_NO_INFO}(hj#1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1hhj1ubh)}(h CDS_AUDIOh]h)}(hj81h]h CDS_AUDIO}(hj:1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj61ubah}(h]h ]h"]h$]h&]uh1hhj1ubh)}(h CDS_MIXEDh]h)}(hjO1h]h CDS_MIXED}(hjQ1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjM1ubah}(h]h ]h"]h$]h&]uh1hhj1ubh)}(h CDS_XA_2_2h]h)}(hjf1h]h CDS_XA_2_2}(hjh1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjd1ubah}(h]h ]h"]h$]h&]uh1hhj1ubh)}(h CDS_XA_2_1h]h)}(hj}1h]h CDS_XA_2_1}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj{1ubah}(h]h ]h"]h$]h&]uh1hhj1ubh)}(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&]uh1hhj1ubeh}(h]h ]h"]h$]h&]hhuh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hhhMhj0ubeh}(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:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj1ubj )}(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&]uh1hhhhMhj 2ubj2 )}(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}hj2sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj 2ubeh}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj0ubeh}(h]h ]h"]h$]h&]uh1j hj~0ubeh}(h]h ]h"]h$]h&]uh1j hjl0ubeh}(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}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjS2ubj )}(hhh](h)}(hGet number of slotsh]hGet number of slots}(hjh2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhje2ubh)}(husage::h]husage:}(hjv2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhje2ubj2 )}(h#ioctl(fd, CDROM_CHANGER_NSLOTS, 0);h]h#ioctl(fd, CDROM_CHANGER_NSLOTS, 0);}hj2sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhje2ubj )}(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:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj2ubj )}(hhh]h)}(hnoneh]hnone}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj2ubeh}(h]h ]h"]h$]h&]uh1j hje2ubeh}(h]h ]h"]h$]h&]uh1j hjS2ubeh}(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}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj43ubj )}(hhh](h)}(hlock or unlock doorh]hlock or unlock door}(hjI3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF3ubh)}(husage::h]husage:}(hjW3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF3ubj2 )}(h+int lock; ioctl(fd, CDROM_LOCKDOOR, lock);h]h+int lock; ioctl(fd, CDROM_LOCKDOOR, lock);}hje3sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhjF3ubj )}(hhh](j )}(h*inputs: Door lock flag, 1=lock, 0=unlock h](j )}(hinputs:h]hinputs:}(hjz3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjv3ubj )}(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 hjv3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjs3ubj )}(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 hhhMhjs3ubj )}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubj!)}(h!Door lock function not supported.h]h)}(hj4h]h!Door lock function not supported.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hhhMhj3ubeh}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubj!)}(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}(hj14hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-4ubah}(h]h ]h"]h$]h&]uh1j hhhMhj4ubeh}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]hhuh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjs3ubj )}(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:}(hja4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj]4ubj )}(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.}(hjr4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjo4ubh)}(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&]uh1hhhhMhjo4ubeh}(h]h ]h"]h$]h&]uh1j hj]4ubeh}(h]h ]h"]h$]h&]uh1j hhhMhjs3ubeh}(h]h ]h"]h$]h&]uh1j hjF3ubeh}(h]h ]h"]h$]h&]uh1j hj43ubeh}(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&]uh1hhhhMhj4ubj2 )}(h*int debug; ioctl(fd, CDROM_DEBUG, debug);h]h*int debug; ioctl(fd, CDROM_DEBUG, debug);}hj4sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj4ubj )}(hhh](j )}(h/inputs: Cdrom debug flag, 0=disable, 1=enable h](j )}(hinputs:h]hinputs:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj4ubj )}(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 hj4ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj4ubj )}(h=outputs: The ioctl return value will be the new debug flag. h](j )}(houtputs:h]houtputs:}(hj!5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj5ubj )}(hhh]h)}(h2The ioctl return value will be the new debug flag.h]h2The ioctl return value will be the new debug flag.}(hj25hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/5ubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(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:}(hjP5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjL5ubj )}(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}(hjh5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjd5ubah}(h]h ]h"]h$]h&]uh1hhja5ubah}(h]h ]h"]h$]h&]hhuh1hhhhMhj^5ubah}(h]h ]h"]h$]h&]uh1j hjL5ubeh}(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&]uh1hhhhMhj5ubj2 )}(h#ioctl(fd, CDROM_GET_CAPABILITY, 0);h]h#ioctl(fd, CDROM_GET_CAPABILITY, 0);}hj5sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj5ubj )}(hhh](j )}(hinputs: none h](j )}(hinputs:h]hinputs:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM$hj5ubj )}(hhh]h)}(hnoneh]hnone}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj5ubah}(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:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM*hj6ubj )}(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'hj#6ubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(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}(hjV6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhjR6ubj )}(hhh](h)}(hset the audio buffer sizeh]hset the audio buffer size}(hjg6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjd6ubh)}(husage::h]husage:}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hjd6ubj2 )}(h+int arg; ioctl(fd, CDROMAUDIOBUFSIZ, val);h]h+int arg; ioctl(fd, CDROMAUDIOBUFSIZ, val);}hj6sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhM2hjd6ubj )}(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:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM?hj6ubj )}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hj 7ubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]hhuh1hhhhM?hj7ubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1j hhhM?hj6ubj )}(h(notes: Not supported by all drivers. h](j )}(hnotes:h]hnotes:}(hj87hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMEhj47ubj )}(hhh]h)}(hNot supported by all drivers.h]hNot supported by all drivers.}(hjI7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjF7ubah}(h]h ]h"]h$]h&]uh1j hj47ubeh}(h]h ]h"]h$]h&]uh1j hhhMEhj6ubeh}(h]h ]h"]h$]h&]uh1j hjd6ubeh}(h]h ]h"]h$]h&]uh1j hjR6ubeh}(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}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMGhhhhubj!)}(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&]uh1hhhhMIhj7ubj2 )}(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&]jA jB uh1j1 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](j!)}(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&]uh1j hhhMPhj7ubj')}(hhh]j,)}(hhh](j1)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j0hj7ubj1)}(hhh]h}(h]h ]h"]h$]h&]colwidthK*uh1j0hj7ubjG)}(hhh](jL)}(hhh](jQ)}(hhh]h)}(htypeh]htype}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj7ubah}(h]h ]h"]h$]h&]uh1jPhj7ubjQ)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj8ubah}(h]h ]h"]h$]h&]uh1jPhj7ubeh}(h]h ]h"]h$]h&]uh1jKhj7ubjL)}(hhh](jQ)}(hhh]h)}(hphysical.layer_numh]hphysical.layer_num}(hj38hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhj08ubah}(h]h ]h"]h$]h&]uh1jPhj-8ubjQ)}(hhh]h)}(hdesired layer, indexed from 0h]hdesired layer, indexed from 0}(hjJ8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjG8ubah}(h]h ]h"]h$]h&]uh1jPhj-8ubeh}(h]h ]h"]h$]h&]uh1jKhj7ubjL)}(hhh](jQ)}(hhh]h)}(hcopyright.layer_numh]hcopyright.layer_num}(hjj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjg8ubah}(h]h ]h"]h$]h&]uh1jPhjd8ubjQ)}(hhh]h)}(hdesired layer, indexed from 0h]hdesired layer, indexed from 0}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj~8ubah}(h]h ]h"]h$]h&]uh1jPhjd8ubeh}(h]h ]h"]h$]h&]uh1jKhj7ubjL)}(hhh](jQ)}(hhh]h)}(h disckey.agidh]h disckey.agid}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhj8ubah}(h]h ]h"]h$]h&]uh1jPhj8ubjQ)}(hhh]h}(h]h ]h"]h$]h&]uh1jPhj8ubeh}(h]h ]h"]h$]h&]uh1jKhj7ubeh}(h]h ]h"]h$]h&]uh1jFhj7ubeh}(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](j!)}(h"dvd_struct structure, containing: h]h)}(h!dvd_struct structure, containing:h]h!dvd_struct structure, containing:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hj8ubah}(h]h ]h"]h$]h&]uh1j hhhM]hj8ubj')}(hhh]j,)}(hhh](j1)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j0hj9ubj1)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j0hj9ubjG)}(hhh](jL)}(hhh](jQ)}(hhh]h)}(hphysicalh]hphysical}(hj39hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj09ubah}(h]h ]h"]h$]h&]uh1jPhj-9ubjQ)}(hhh]h)}(hfor type == DVD_STRUCT_PHYSICALh]hfor type == DVD_STRUCT_PHYSICAL}(hjJ9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hjG9ubah}(h]h ]h"]h$]h&]uh1jPhj-9ubeh}(h]h ]h"]h$]h&]uh1jKhj*9ubjL)}(hhh](jQ)}(hhh]h)}(h copyrighth]h copyright}(hjj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjg9ubah}(h]h ]h"]h$]h&]uh1jPhjd9ubjQ)}(hhh]h)}(h for type == DVD_STRUCT_COPYRIGHTh]h for type == DVD_STRUCT_COPYRIGHT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahj~9ubah}(h]h ]h"]h$]h&]uh1jPhjd9ubeh}(h]h ]h"]h$]h&]uh1jKhj*9ubjL)}(hhh](jQ)}(hhh]h)}(h disckey.valueh]h disckey.value}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj9ubah}(h]h ]h"]h$]h&]uh1jPhj9ubjQ)}(hhh]h)}(hfor type == DVD_STRUCT_DISCKEYh]hfor type == DVD_STRUCT_DISCKEY}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj9ubah}(h]h ]h"]h$]h&]uh1jPhj9ubeh}(h]h ]h"]h$]h&]uh1jKhj*9ubjL)}(hhh](jQ)}(hhh]h)}(hbca.{len,value}h]hbca.{len,value}}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj9ubah}(h]h ]h"]h$]h&]uh1jPhj9ubjQ)}(hhh]h)}(hfor type == DVD_STRUCT_BCAh]hfor type == DVD_STRUCT_BCA}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj9ubah}(h]h ]h"]h$]h&]uh1jPhj9ubeh}(h]h ]h"]h$]h&]uh1jKhj*9ubjL)}(hhh](jQ)}(hhh]h)}(hmanufact.{len,valu}h]hmanufact.{len,valu}}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj :ubah}(h]h ]h"]h$]h&]uh1jPhj :ubjQ)}(hhh]h)}(hfor type == DVD_STRUCT_MANUFACTh]hfor type == DVD_STRUCT_MANUFACT}(hj&:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj#:ubah}(h]h ]h"]h$]h&]uh1jPhj :ubeh}(h]h ]h"]h$]h&]uh1jKhj*9ubeh}(h]h ]h"]h$]h&]uh1jFhj9ubeh}(h]h ]h"]h$]h&]colsKuh1j+hj9ubah}(h]h ]h"]h$]h&]uh1j&hj8ubeh}(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:}(hjc:hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMkhj_:ubj )}(hhh]h)}(hhh](h)}(h7EINVAL physical.layer_num exceeds number of layersh]h)}(hjy:h]h7EINVAL physical.layer_num exceeds number of layers}(hj{:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhjw:ubah}(h]h ]h"]h$]h&]uh1hhjt: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&]uh1hhjt:ubeh}(h]h ]h"]h$]h&]hhuh1hhhhMhhjq:ubah}(h]h ]h"]h$]h&]uh1j hj_:ubeh}(h]h ]h"]h$]h&]uh1j hhhMkhj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1j hhhMIhhhhubh)}(h/DVD_WRITE_STRUCT Write structureh]h/DVD_WRITE_STRUCT Write structure}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhhhhubj!)}(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&]uh1j hhhMohhhhubh)}(h.DVD_AUTH Authenticationh]h.DVD_AUTH Authentication}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshhhhubj!)}(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:ubj2 )}(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&]jA jB uh1j1 hhhMwhj:ubj )}(hhh](j )}(h6inputs: dvd_authinfo structure. See h](j )}(hinputs:h]hinputs:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhM}hj;ubj )}(hhh]h)}(h,dvd_authinfo structure. See h]h,dvd_authinfo structure. See }(hj0;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 )}(h"outputs: dvd_authinfo structure. h](j )}(houtputs:h]houtputs:}(hjN;hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjJ;ubj )}(hhh]h)}(hdvd_authinfo structure.h]hdvd_authinfo structure.}(hj_;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\;ubah}(h]h ]h"]h$]h&]uh1j hjJ;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 hhhMhjy;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&]hhuh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1j hjy;ubeh}(h]h ]h"]h$]h&]uh1j hhhMhj;ubeh}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1j hhhMuhhhhubj )}(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;ubj2 )}(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&]jA jB uh1j1 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.}(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 )}(hIoutputs: none cdrom_generic_command structure containing results. h](j )}(houtputs:h]houtputs:}(hj?<hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhj;<ubj )}(hhh](j!)}(hnone h]h)}(hnoneh]hnone}(hjT<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjP<ubah}(h]h ]h"]h$]h&]uh1j hhhMhjM<ubh)}(h3cdrom_generic_command structure containing results.h]h3cdrom_generic_command structure containing results.}(hjh<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjM<ubeh}(h]h ]h"]h$]h&]uh1j hj;<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<ubj!)}(hcommand failed.h]h)}(hj<h]hcommand failed.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1j hhhMhj<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<ubj!)}(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&]uh1j hhhMhj<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<ubj!)}(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&]uh1j hhhMhj<ubeh}(h]h ]h"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]hhuh1hhhhMhj<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}(hjQ=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjM=ubj )}(hhh](h)}(hget next writable blockh]hget next writable block}(hjb=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_=ubh)}(husage::h]husage:}(hjp=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_=ubj2 )}(h2long next; ioctl(fd, CDROM_NEXT_WRITABLE, &next);h]h2long next; ioctl(fd, CDROM_NEXT_WRITABLE, &next);}hj~=sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhj_=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](j!)}(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&]uh1j hhhMhj=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 hj_=ubeh}(h]h ]h"]h$]h&]uh1j hjM=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}(hjJ>hhhNhNubah}(h]h ]h"]h$]h&]uh1j hhhMhjF>ubj )}(hhh](h)}(hget last block written on disch]hget last block written on disc}(hj[>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjX>ubh)}(husage::h]husage:}(hji>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjX>ubj2 )}(h1long last; ioctl(fd, CDROM_LAST_WRITTEN, &last);h]h1long last; ioctl(fd, CDROM_LAST_WRITTEN, &last);}hjw>sbah}(h]h ]h"]h$]h&]jA jB uh1j1 hhhMhjX>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 hjX>ubeh}(h]h ]h"]h$]h&]uh1j hjF>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_backlinksjPfootnote_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_handlerjW?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}j2?j/?s nametypes}j2?sh}j/?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.