On Sun, 1 Feb 2004 13:28:03 -0800 Greg KH <greg _at_ kroah.com> 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."... > What other way can a userspace library do this? It doesn't take very > long at all, what is the problem with this? Well, I would have liked a lib-function like find_device(int vend_id,int prod_id); but thats really not a big deal. > Remember that sysfs is "1 value per file". If that works for your > device, then I suggest you look at the usbled driver, as that is a > tiny usb driver that only uses sysfs. Nothing like a 4kb kernel > driver :) 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. >Good luck Thanks regards Jonas PS: CC me in replies, please. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups: References:
- Which interface: sysfs, proc, devfs?Jonas Diemer
- Re: Which interface: sysfs, proc, devfs?Greg KH
- Re: Which interface: sysfs, proc, devfs?Jonas Diemer
- Re: Which interface: sysfs, proc, devfs?Greg KH
- Prev by Date: Re: Uptime counter
- Next by Date: 2.6.1 slower than 2.4, smp/scsi/sw-raid/reiserfs
- Previous by thread: Re: Which interface: sysfs, proc, devfs?
- Next by thread: Re: Which interface: sysfs, proc, devfs?
- Indexes:[Main][Thread]