[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which interface: sysfs, proc, devfs?


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/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: References: