<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libusb, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-06-23T07:40:33Z</updated>
<entry>
<title>libusb: add SUPER_PLUS in speed enum.</title>
<updated>2025-06-23T07:40:33Z</updated>
<author>
<name>SHENGYI HUNG</name>
<email>aokblast@FreeBSD.org</email>
</author>
<published>2025-05-15T10:30:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=05275cf75a19e9f5919bf0a2ee86b5b946d0dc07'/>
<id>urn:sha1:05275cf75a19e9f5919bf0a2ee86b5b946d0dc07</id>
<content type='text'>
Summary:
Some application(like usbmuxd) start to use LIBUSB_SPEED_SUPER_PLUS now.
Though we don't have the corresponding infra in kernel right now, it is
harmless to have this enum value in userspace to prevent the compile error

Reviewed By: bapt
Sponsored By: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50359

(cherry picked from commit f938c0a90313125a9518307e80ca92d4c71f7745)
</content>
</entry>
<entry>
<title>libusb: use eventfd</title>
<updated>2025-06-23T07:40:33Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2025-05-15T13:21:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=884ca28b97e73f297b512aaf04deb6f951854c02'/>
<id>urn:sha1:884ca28b97e73f297b512aaf04deb6f951854c02</id>
<content type='text'>
Simplify libusb code by replacing pipe(2) inter thread event mecanism
with eventfd(2).

MFC After:	3 weeks
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D50360

(cherry picked from commit ae28929b7c78267815e994e0ad12e3cc7db361bc)
</content>
</entry>
<entry>
<title>libusb(3): Fix link in comment</title>
<updated>2025-05-14T14:42:13Z</updated>
<author>
<name>Ting-Hsuan Huang</name>
<email>felixhuang07@gmail.com</email>
</author>
<published>2024-01-12T11:55:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f7cd5c230849730dd03f942d7bf8f2e770643e7a'/>
<id>urn:sha1:f7cd5c230849730dd03f942d7bf8f2e770643e7a</id>
<content type='text'>
Event:		Advanced UNIX Programming Course (Fall’23) at NTHU.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1042

(cherry picked from commit 2a3a8eb9fac66183e5af4852bbcb40824629f182)
</content>
</entry>
<entry>
<title>libusb: Emit event after deregistering hotplug handler</title>
<updated>2025-05-14T14:23:38Z</updated>
<author>
<name>SHENGYI HUNG</name>
<email>aokblast@FreeBSD.org</email>
</author>
<published>2025-05-05T17:52:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=641bb44d8538c66446aea556baa22bbf5bd14255'/>
<id>urn:sha1:641bb44d8538c66446aea556baa22bbf5bd14255</id>
<content type='text'>
The original implementation did not emit an event when a hotplug handler
was deregistered. This omission causes issues for programs that follow
the best practices recommended by libusb—particularly those that use
`libusb_hotplug_register_callback()` or similar functions in a loop
while managing hotplug handlers dynamically.

Without emitting an event after deregistration, these programs can
become stuck waiting indefinitely for an event that will never come,
as the condition to break out of the wait loop is never satisfied.

See: https://github.com/libusb/libusb/blob/6c0ae1ab456da49e7805115e77ce0428ace4ea41/libusb/hotplug.c#L459

Reviewed by:    bapt
Sponsored By:   FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50170

(cherry picked from commit d2852659180307475a8376ce86aa587cccbb10bf)
</content>
</entry>
<entry>
<title>libusb: fix hotplug sigbus</title>
<updated>2025-01-07T09:02:57Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2025-01-03T09:50:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=58734b18794b772a2f964bf08863808680f0c81a'/>
<id>urn:sha1:58734b18794b772a2f964bf08863808680f0c81a</id>
<content type='text'>
When a hotplug callback has been registered, and the program using
libusb is calling libusb_exit then the thread handler is set to
NO_THREAD which result in the variable controlling the loop the be set
to 0, it does a last pass through device available without having done
a scan, which result in a sigbus after it tried to unregister all the
devices.

directly break the loop instead and cleanup the list of devices

this fixes the tests with LGPLed libusb's hotplugtest program

MFC After:	3 days
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D48298

(cherry picked from commit ba5834b8e11fd002a663d083a464e397e76cb3a9)
</content>
</entry>
<entry>
<title>manuals: Fix dates</title>
<updated>2024-11-04T16:16:22Z</updated>
<author>
<name>Graham Percival</name>
<email>gperciva@tarsnap.com</email>
</author>
<published>2024-10-16T23:03:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cdffbea57c0d4dc1e76cb1e2d170b7f174c53d24'/>
<id>urn:sha1:cdffbea57c0d4dc1e76cb1e2d170b7f174c53d24</id>
<content type='text'>
These were reported by `mandoc -T lint ...` as warnings.

Signed-off-by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1475

(cherry picked from commit b74aaa1a2199261f9078247d29481a994b6b5e42)
</content>
</entry>
<entry>
<title>libusb: claim to be version 1.0.16</title>
<updated>2024-08-06T21:25:21Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-06-06T13:33:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5bd6e6c1ddff7f10e8b86703536d81af8ce0532b'/>
<id>urn:sha1:5bd6e6c1ddff7f10e8b86703536d81af8ce0532b</id>
<content type='text'>
We are not 100% compatible with 1.0.16, but implement some
functionality from that version that is required by certain ports.

PR:		277799
PR:		279555 (exp-run)
Event:		Kitchener-Waterloo Hackathon 202406
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45514

(cherry picked from commit 5654b42142e1f689b26d405c90379b85f22349a0)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line nroff pattern</title>
<updated>2023-08-16T17:55:10Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fa9896e082a1046ff4fbc75fcba4d18d1f2efc19'/>
<id>urn:sha1:fa9896e082a1046ff4fbc75fcba4d18d1f2efc19</id>
<content type='text'>
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c comment pattern</title>
<updated>2023-08-16T17:54:29Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2a63c3be158216222d89a073dcbd6a72ee4aab5a'/>
<id>urn:sha1:2a63c3be158216222d89a073dcbd6a72ee4aab5a</id>
<content type='text'>
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
</content>
</entry>
</feed>
