[lkml]   [1996]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: IDEA for CD auto eject/(dis)mount
On 30 Mar 1996, Daniel Quinlan wrote:

> But, it would be nice if every cdrom driver under Linux share an ioctl
> or system call to "eject" unmounted removable (block) devices that
> support ejection (and whatever the opposite of ejection is). Then, a

Such already exists, and seems to be supported by most drivers. In
include/linux/cdrom.h, the following are defined:

#define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */

* enable (1) / disable (0) auto-ejecting
#define CDROMEJECT_SW 0x530f /* arg: 0 or 1 */

#define CDROMEJECT 0x5309 /* eject CD-ROM media */


 \ /
  Last update: 2005-03-22 13:36    [W:0.107 / U:4.588 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site