-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 20 Nov 2002 10:02, Greg Herlein wrote: > > > why do people hate IOCTLs ? > > > > Different people hate them for different reasons. There is a lot to hate > > :) Note the smiley. I find ioctl's are good for some things - they are just easy to abuse.
> Question: the Linux Telephony API heavily uses ioctls to control > the low level telephone behavior via the driver. Existing > drivers for PCI/ISA/PCMCIA all use this interface. > > I am working on a USB driver that links to the phone subsystem > (by registering via phonedev.o) and uses minor numbers from there > (major number 100). > > Are you guys gonna freak and hate my driver because it uses > ioctls? I never freak :) The usb code is littered with ioctl()s, mainly to support existing usage from equivalent drivers. All the networking drivers support the standard ethtool ioctls, hiddev is ioctl ridden, serial code uses iocts, and so on. I'm not the maintainer, but my opinion is that if you have to use them, do so. If there is a better way, use that instead. Brad - -- http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE92svBW6pHgIdAuOMRAiQLAJ9YPsq2C3keD7j7dTET2Dwa46/w2ACfYlDf Rsi19bAl+n42202/jOUVf4Q= =zJDk -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel