Lines Matching +full:drive +full:- +full:open +full:- +full:source
5 - Edward A. Falk <efalk@google.com>
10 the CDROM layer. These are by-and-large implemented (as of Linux 2.6)
23 CDROMSTOP Stop the cdrom drive
24 CDROMSTART Start the cdrom drive
33 CDROMEJECT_SW enable(1)/disable(0) auto-ejecting
34 CDROMMULTISESSION Obtain the start-of-last-session
40 CDROMRESET hard-reset the drive
41 CDROMVOLREAD Get the drive's volume setting
47 CDROMPLAYBLK scsi-cd only, (struct cdrom_blk)
49 CDROMGETSPINDOWN return 4-bit spindown value
50 CDROMSETSPINDOWN set 4-bit spindown value
54 CDROM_SELECT_SPEED Set the CD-ROM speed
55 CDROM_SELECT_DISC Select disc (for juke-boxes)
67 CDROM_SEND_PACKET send a packet to the drive
73 The information that follows was determined from reading kernel source
76 ------------------------------------------------------------------------------
81 and -1 with errno set to an appropriate value on error. (Some
82 ioctls return non-negative data values.)
84 Unless otherwise specified, all ioctl calls return -1 and set
93 ------------------------------------------------------------------------------
114 - ENOSYS cd drive not audio-capable.
135 - ENOSYS cd drive not audio-capable.
159 - ENOSYS cd drive not audio-capable.
162 - MSF stands for minutes-seconds-frames
163 - LBA stands for logical block address
164 - Segment is described as start and end times, where each time
190 - ENOSYS cd drive not audio-capable.
193 - Segment is described as start and end times, where each time
219 - ENOSYS cd drive not audio-capable.
244 - ENOSYS cd drive not audio-capable.
245 - EINVAL entry.cdte_format not CDROM_MSF or CDROM_LBA
246 - EINVAL requested track out of bounds
247 - EIO I/O error reading TOC
250 - TOC stands for Table Of Contents
251 - MSF stands for minutes-seconds-frames
252 - LBA stands for logical block address
257 Stop the cdrom drive
274 - ENOSYS cd drive not audio-capable.
277 - Exact interpretation of this ioctl depends on the device,
278 but most seem to spin the drive down.
282 Start the cdrom drive
299 - ENOSYS cd drive not audio-capable.
302 - Exact interpretation of this ioctl depends on the device,
303 but most seem to spin the drive up and/or close the tray.
308 - Ejects the cdrom media
325 - ENOSYS cd drive not capable of ejecting
326 - EBUSY other processes are accessing drive, or door is locked
329 - See CDROM_LOCKDOOR, below.
352 - ENOSYS cd drive not capable of closing the tray
353 - EBUSY other processes are accessing drive, or door is locked
356 - See CDROM_LOCKDOOR, below.
380 - ENOSYS cd drive not audio-capable.
385 Get the drive's volume setting
405 - ENOSYS cd drive not audio-capable.
430 - ENOSYS cd drive not audio-capable.
431 - EINVAL format not CDROM_MSF or CDROM_LBA
434 - Format is converted to CDROM_MSF or CDROM_LBA
463 - EINVAL address less than 0, or msf less than 0:2:0
464 - ENOMEM out of memory
467 - As of 2.6.8.1, comments in <linux/cdrom.h> indicate that this
468 ioctl accepts a cdrom_read structure, but actual source code
472 - MSF values are converted to LBA values via this formula::
474 lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET;
519 - EINVAL format not CDROM_MSF or CDROM_LBA
520 - EINVAL nframes not in range [1 75]
521 - ENXIO drive has no queue (probably means invalid fd)
522 - ENOMEM out of memory
526 enable(1)/disable(0) auto-ejecting
536 Flag specifying auto-eject flag.
544 - ENOSYS Drive is not capable of ejecting.
545 - EBUSY Door is locked
551 Obtain the start-of-last-session address of multi session disks
571 - EINVAL format not CDROM_MSF or CDROM_LBA
596 - ENOSYS Drive is not capable of reading MCN data.
599 - Source code comments state::
619 hard-reset the drive
636 - EACCES Access denied: requires CAP_SYS_ADMIN
637 - ENOSYS Drive is not capable of resetting.
696 scsi-cd only
729 The value of the current 4-bit spindown value.
743 4-bit value used to control spindown (TODO: more detail here)
765 New values for drive options. The logical 'or' of:
768 CDO_AUTO_CLOSE close tray on first open(2)
769 CDO_AUTO_EJECT open tray on last release
770 CDO_USE_FFLAGS use O_NONBLOCK information on open
771 CDO_LOCK lock tray on open files
772 CDO_CHECK_TYPE check type on open for data
777 ioctl return value. Returns -1 on error.
780 - ENOSYS selected option(s) not supported by drive.
795 Set the CD-ROM speed
805 New drive speed.
813 - ENOSYS speed selection not supported by drive.
818 Select disc (for juke-boxes)
828 Disk to load into drive.
836 - EINVAL Disk number beyond capacity of drive
858 has been changed, or -1 on error.
861 - ENOSYS Drive can't detect media change
862 - EINVAL Slot number beyond capacity of drive
863 - ENOMEM Out of memory
893 -1 error
897 - ENOSYS Drive can't detect drive status
898 - EINVAL Slot number beyond capacity of drive
899 - ENOMEM Out of memory
922 - CDS_NO_INFO
923 - CDS_AUDIO
924 - CDS_MIXED
925 - CDS_XA_2_2
926 - CDS_XA_2_1
927 - CDS_DATA_1
933 - Source code comments state::
948 to use bitmasks... -Erik
950 Well, now we have the option CDS_MIXED: a mixed-type CD.
953 ---david
973 CD changer. Typically 1 for non-multi-disk devices.
999 - EDRIVE_CANT_DO_THIS
1002 - EBUSY
1005 have the drive open and not CAP_SYS_ADMIN
1036 - EACCES Access denied: requires CAP_SYS_ADMIN
1074 The ioctl return value is the new audio buffer size, or -1
1078 - ENOSYS Not supported by this driver.
1119 - EINVAL physical.layer_num exceeds number of layers
1120 - EIO Received invalid response from drive
1147 - ENOTTY ai.type not recognized.
1152 send a packet to the drive
1171 - EIO
1174 - EPERM
1177 write command was attempted on a drive which
1178 is opened read-only, or because the command
1180 - EINVAL