Page MenuHomeFreeBSD

libusb: implement libusb_get_max_alt_packet_size
Needs ReviewPublic

Authored by aokblast on Jul 9 2025, 10:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 19, 5:04 AM
Unknown Object (File)
Sat, Nov 15, 11:56 PM
Unknown Object (File)
Thu, Nov 13, 9:57 AM
Unknown Object (File)
Tue, Nov 11, 10:35 PM
Unknown Object (File)
Wed, Nov 5, 8:54 PM
Unknown Object (File)
Tue, Nov 4, 8:35 AM
Unknown Object (File)
Wed, Oct 29, 8:19 AM
Unknown Object (File)
Mon, Oct 27, 1:20 AM
Subscribers

Details

Reviewers
bapt
kevans
Group Reviewers
USB
Summary

The libusb has a function to calculate the size from given interface,
alt_setting, endpoint. Implementing it by refactoring the calculating
function for libusb_get_max_iso_packet_size.

Sponsored By: FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 65298
Build 62181: arc lint + arc unit

Event Timeline

Add missing parentheses in return

Rebase to main and fix potential error

lwhsu added inline comments.
lib/libusb/libusb10.c
592

pdconf seems leaked here.

612

for all the early return below, except the if (ret < 0), pdconf needs being free()'d?

lib/libusb/libusb.3
193

do you mean multiply the multiplier?