Re: Which interface: sysfs, proc, devfs?

From: Greg KH
Date: Sun Feb 01 2004 - 22:26:12 EST


On Sun, Feb 01, 2004 at 11:00:10PM +0100, Jonas Diemer wrote:
> On Sun, 1 Feb 2004 13:28:03 -0800
> Greg KH <greg@xxxxxxxxx> wrote:
>
> > You mean "submit a urb and be notified when it was completed?" I
> > thought libusb supported that with signals.
>
> Yeah, thats what I meant. In the html doc shipped with version 0.1.7,
> it says "all functions in libusb v0.1 are synchronous, meaning the
> functions block and wait for the operation to finish or timeout before
> returning execution to the calling application. Asynchronous operation
> will be supported in v1.0, but not v0.1."...

Yet you want to do asynchronous support with sysfs? How would that
work?

What kind of device are you writing a driver for?

> Thanks for that hint, I'll have a look at it. I only need 1 val per
> file, i.e. a "firmware" file, which I learned is best done with the
> firmware_class.

For firmware only download type devices, I'd really recommend sticking
with libusb, unless you have to. It's much easier that way.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/