lkml.org 
[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: LANANA: To Pending Device Number Registrants


On Tue, 15 May 2001, Alan Cox wrote:

> to
>
> /* Use scsi if possible [scsi, ide-scsi, usb-scsi, ...] */
> if(HAS_FEATURE_SET(fd, "scsi-tape"))
> ...
> else if(HAS_FEATURE_SET(fd, "floppy-tape"))
> ..

Alan, if we are doing that we might as well use saner interface than
ioctl(2). In case you've mentioned we don't want "make device SYS$FOO17
do special action OP$LOUD$BARF4269". We want "make device rewind the tape".
Or "tell us geometry". Or "eject the media". Application doesn't
_care_ whether it is ejecting floppy on Sun or IDE CD, or SCSI
CD or ZIP disk sitting on parallel port. The fact that currently it
has to know is a Bad Thing(tm).

At the very least we need ioctls sorted by function, not by device.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.264 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site