Date: Tue, 19 Dec 2017 15:28:09 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 224454] Feature request: implement libusb_get_parent and libusb_has_capability Message-ID: <bug-224454-17-RaodWIIl4r@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224454-17@https.bugs.freebsd.org/bugzilla/> References: <bug-224454-17@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224454 Hans Petter Selasky <hselasky@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky <hselasky@FreeBSD.org> --- Hi, Can you suggest a patch to implement them in FreeBSD 12-current? /usr/src/lib/libusb I'm uncertain if the functions you mention are useful to FreeBSD in general including ports, or if it is better to stub them in the code where these functions are used. The function to get the parent USB device must be re-constructed in userspa= ce by using the information obtained from: /usr/include/libusb20.h:uint8_t libusb20_dev_get_parent_address(struct libusb20_device *pdev); Also this introduce a couple of races, like what to do if the parent USB de= vice vanishes, refcounts and so on. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224454-17-RaodWIIl4r>