Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2003 14:38:31 -0500
From:      "Michael E. Mercer" <mmercer@nc.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   USB Question: unable to open /dev/ugen0 more than once
Message-ID:  <1069357110.345.10.camel@dual.mmercer.com>

next in thread | raw e-mail | index | archive | help
Hello peoples,

Question: Should I be able to open /dev/ugen0 more than once?

I am using FreeBSD 4.9-Stable, libusb-0.1.7.
>From reading the libusb docs, you must open the device for each
interface you want to acquire. However, once it is opened once, it can't
be opened again. 

Furthermore, calls to usb_find_devices() shows that /dev/ugen0 has
disappeared. Investigation on how they(libusb) finds devices, shows they
are trying to open the device read only... this is where it tries to
open it the second time. This second try fails and therefore libusb
thinks the device was removed.

Question: Is this the correct behavior?

Any help/insight would be greatly appreciated.

Michael E Mercer 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1069357110.345.10.camel>