Page MenuHomeFreeBSD

libusb: implement libusb_pollfds_handle_timeouts
ClosedPublic

Authored by aokblast on Aug 5 2025, 3:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 10:36 AM
Unknown Object (File)
Fri, Nov 14, 2:06 PM
Unknown Object (File)
Fri, Nov 14, 11:56 AM
Unknown Object (File)
Nov 2 2025, 2:38 AM
Unknown Object (File)
Oct 27 2025, 9:47 AM
Unknown Object (File)
Oct 27 2025, 2:38 AM
Unknown Object (File)
Oct 26 2025, 5:22 PM
Unknown Object (File)
Oct 26 2025, 3:26 PM
Subscribers

Details

Summary

This function tell applications who maintains the pollfds themselves if
they should handle the timeout for each xfer themselves. In FreeBSD, the
timeout for each xfer is handle by kernel and no need a special timer to
do it. Therefore, we return 1 to indicate that it is handle by libusb
internally.

Diff Detail

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

Event Timeline

For the commit message:

  • This function tell -> This function tells
  • is handle by kernel -> is handled by kernel
  • no need a special timer -> doesn't need a special timer
  • it is handle by libusb -> it is handled by libusb
lib/libusb/libusb.3
738
This revision is now accepted and ready to land.Aug 5 2025, 6:21 PM
lib/libusb/libusb.3
738
739
This revision now requires review to proceed.Aug 6 2025, 1:34 PM
markj added inline comments.
lib/libusb/libusb.3
738
This revision is now accepted and ready to land.Aug 6 2025, 1:35 PM