> Question1: How do I make my device show up automatically in the devfs?
> or procfs?

You register with devfs. To do so you need a call like this:
        usblp->devfs = devfs_register(usb_devfs_handle, name, ...
in your probe method.

> There doesn't seem to be much documentation on the fops part of the usb
> drivers. (Maybe I need newer documentation from somewhere?)

It's not specific to USB. Look at documentation for character devices
to see a description.

> Question2: Ok so there is suppose to be 16 devices now. right?

Right.

> How do my ftdi_write procedure know which one he is currently working on?

There are two ways. Either you extract the minor from the inode which
you can take from struct file* you are passed using minor() and maintain
a table of minors.
Or you do this only on open() and store a pointer to the context in the
private_data field of struct file.
The second way is faster, the first makes it easier to write disconnect()
handlers.

> And then how does the fops link to the usb stuff?
> I've made a so called "context" in ftdi_probe and passed that back as a
> pointer right?
> So should I be able to get that from ftdi_write somehow?
> Or what it the point of having fops in the usb_driver?

Convinience and sharing a major number.

        HTH
                Oliver



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to