USB Question: unable to open /dev/ugen0 more than once

From: Michael E. Mercer (mmercer_at_nc.rr.com)
Date: 11/24/03

  • Next message: Leo Bicknell: "Making a FreeBSD DVD"
    To: freebsd-hackers@freebsd.org
    Date: Sun, 23 Nov 2003 20:50:45 -0500
    
    

    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

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Leo Bicknell: "Making a FreeBSD DVD"

    Relevant Pages

    • USB Question: unable to open /dev/ugen0 more than once
      ... I am using FreeBSD 4.9-Stable, ... >From reading the libusb docs, you must open the device for each ... open it the second time. ...
      (freebsd-questions)
    • Boot problem
      ... Over the past two months I have been tinkering with various flavors of Linux ... and last week I decided to try FreeBSD. ... I installed FreeBSD last night for the second time on a Dell Dimension but ... past the "F1 Default" message before it restarts. ...
      (freebsd-newbies)
    • Re: Cant build ports on older FreeBSD machine
      ... Those users of FreeBSD who care about supporting the ports collection ... complaining that someone else should do it for them. ... P.S. You've ignored my Reply-To for a second time. ...
      (freebsd-questions)
    • Re: nocaml, thanks
      ... This is the second time that you have implied that ... KMP has already contributed about a thousand times more useful effort, ... and insight into Common Lisp and the comp.lang.lisp newsgroup ...
      (comp.lang.lisp)