lkml.org 
[lkml]   [1996]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 */
Phil



\
 
 \ /
  Last update: 2005-03-22 13:36    [from the cache]
©2003-2011 Jasper Spaans