Re: [linux-usb-devel] ioctls in devio.c

2006-04-09 Thread Alan Stern
On Sat, 8 Apr 2006, ashili wrote: > I am able submit URBs for bulk out and bulk in > endpoints for sending & recieving data from USB device > (which is Net2280 for now); but I am seeing the > following limitation. I know Net2280 sends me 5 data > packets on bulk-in endpoint for every request I sub

Re: [linux-usb-devel] ioctls in devio.c

2006-04-08 Thread ashili
I am able submit URBs for bulk out and bulk in endpoints for sending & recieving data from USB device (which is Net2280 for now); but I am seeing the following limitation. I know Net2280 sends me 5 data packets on bulk-in endpoint for every request I submit on bulk out endpoint ; but I am able to r

Re: [linux-usb-devel] ioctls in devio.c

2006-03-29 Thread ashili
HI Alan: It helped; thanks much. I notice there are 2 ioctls for reapurb (with and without timeout). -ashili --- Alan Stern <[EMAIL PROTECTED]> wrote: > On Sun, 26 Mar 2006, ashili wrote: > > > I am using devio.c interface to talk to usb > device. I > > cannot make the SUBMIT_URB for bulk-i

Re: [linux-usb-devel] ioctls in devio.c

2006-03-28 Thread Alan Stern
On Sun, 26 Mar 2006, ashili wrote: > I am using devio.c interface to talk to usb device. I > cannot make the SUBMIT_URB for bulk-in endpoint work. > Here is what I am doing in my user space app. > ---Open devnode, read descriptors, send ioctl for "set > configuration", I get the return values 0 (s

[linux-usb-devel] ioctls in devio.c

2006-03-26 Thread ashili
I am using devio.c interface to talk to usb device. I cannot make the SUBMIT_URB for bulk-in endpoint work. Here is what I am doing in my user space app. ---Open devnode, read descriptors, send ioctl for "set configuration", I get the return values 0 (success). Set the realtime signal hander fo

[linux-usb-devel] ioctls problems using the usblp module

2005-04-19 Thread Charles Duval
Hello, I'm trying to get the status of a USB Printer ( DELL 720C ) while printing a multi-pages file. I'd like to be able to detect the status "out-of-paper" when there are anymore piece of papers in the printer or "off line" when the printer is shutdown. But I've always got the same status = 18 =>

[linux-usb-devel] ioctls

2002-11-20 Thread Rob Miller
On Tue, 19 Nov 2002, Randy.Dunlap wrote: > On Tue, 19 Nov 2002, Brad Hards wrote: > | On Tue, 19 Nov 2002 20:06, Ian Molton wrote: > | > why do people hate IOCTLs ? > | Different people hate them for different reasons. There is a lot to hate :) > | 1. Some people don't like the lack of portabilit

Re: [linux-usb-devel] ioctls?

2002-11-20 Thread Oliver Neukum
Am Mittwoch, 20. November 2002 00:02 schrieb Greg Herlein: > > > why do people hate IOCTLs ? > > > > Different people hate them for different reasons. There is a lot to hate > > :) > > Question: the Linux Telephony API heavily uses ioctls to control > the low level telephone behavior via the drive

Re: [linux-usb-devel] ioctls?

2002-11-19 Thread Brad Hards
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Nov 2002 11:15, Ian Molton wrote: > On Wed, 20 Nov 2002 10:39:45 +1100 > > Brad Hards <[EMAIL PROTECTED]> wrote: > > 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 inste

Re: [linux-usb-devel] ioctls?

2002-11-19 Thread Ian Molton
On Wed, 20 Nov 2002 10:39:45 +1100 Brad Hards <[EMAIL PROTECTED]> wrote: > > 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. If theres a better way to do ANYTHING do it instead. --

Re: [linux-usb-devel] ioctls?

2002-11-19 Thread Alan Cox
On Tue, 2002-11-19 at 23:02, Greg Herlein wrote: > > > why do people hate IOCTLs ? > > Different people hate them for different reasons. There is a lot to hate :) > > Question: the Linux Telephony API heavily uses ioctls to control > the low level telephone behavior via the driver. Existing > dr

Re: [linux-usb-devel] ioctls?

2002-11-19 Thread Brad Hards
-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 a

[linux-usb-devel] ioctls?

2002-11-19 Thread Greg Herlein
> > why do people hate IOCTLs ? > Different people hate them for different reasons. There is a lot to hate :) 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 workin