From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 23 17:50:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A93B316A4CE for ; Sun, 23 Nov 2003 17:50:47 -0800 (PST) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DF1B43F93 for ; Sun, 23 Nov 2003 17:50:46 -0800 (PST) (envelope-from mmercer@nc.rr.com) Received: from [192.168.1.2] (rdu88-246-041.nc.rr.com [24.88.246.41]) hAO1ojNW006089 for ; Sun, 23 Nov 2003 20:50:45 -0500 (EST) From: "Michael E. Mercer" To: freebsd-hackers@freebsd.org Content-Type: text/plain Message-Id: <1069638644.355.9.camel@dual.mmercer.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 23 Nov 2003 20:50:45 -0500 Content-Transfer-Encoding: 7bit Subject: USB Question: unable to open /dev/ugen0 more than once X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 01:50:47 -0000 Hello peoples, I posted this to questions with no reply, I was hoping someone here may be able to give some insight. 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