On Sat, 6 Apr 2002 21:08, Richard Purdie wrote:
> Hi,
>
> I've been trying to send an ioctl signal to the USB Alcatel Speedtouch ADSL
> Modem Driver. I can't work out which device file it uses or what it's
> major/minor numbers are. I did wonder if it used the files in
> /proc/bus/usb/001 (two files 001 and 002) but they don't seem to trigger
> the ioctl handler I'm interested in.
>
> I've looked at the Programming Guide for Linux USB Device Drivers and the
> Linux Kernel Module Programming Guide. One implies I need a device file to
> write the ioctl to but I'm not sure which one it is. The other mentions
> ioctl under Framework Data Structures but gives no further information on
> it. Which file does it get assigned to and does it use major/minor numbers
> or something different (something dynamic?).
Its a networking driver. It uses networking devices, not char devices or block 
devices, hence no major/minor. A good reference (available on line) is the 
Linux Device Drivers book (2nd edition). 

Perhaps you might like to explain exactly what you are trying to accomplish. 
There are lots of ioctl()s that you can use to do different things to the usb 
device (usbfs ioctls), the ethernet device (eg ethtool ioctls), the driver 
(private ioctl()s, if any), the networking stack, and so on.

A good example of a user space tool for networking is the ethtool package from 
http://gkernel.sf.net. Another example, more complex, is the wireless tools 
package.

Brad


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to