Messages in this thread | | | Date | Tue, 15 May 2001 06:12:52 -0400 (EDT) | From | Alexander Viro <> | Subject | Re: LANANA: To Pending Device Number Registrants |
| |
On Tue, 15 May 2001, Alan Cox wrote:
> > 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 > > Counter argument; We dont want the bloat of making a floppy tape have > delusions of grandeur in kernel space when mt-st can do it in userspace.
Cost of adding IOCTL_REWIND_TAPE - two words in each tape driver. That alone kills a bunch of crap in userland and makes _both_ sides more maintainable.
Idea that ioctls belong to drivers is bogus. Some of them do, but that's exactly the case when it's something deeply specific to the driver. As in "make the printer puke on the top of next page". And even that might be better off as IOCTL_LART.
IOW, even if we stay with ioctl(2) every place where we do the "if scsi tape ... else if floppy tape ..." is bogus.
- 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/
| |