Contents

adjust(with:)

Adjusts the behavior of periodic endpoints to consume a different amount of bus bandwidth.

Declaration

func adjust(with descriptors: UnsafePointer<IOUSBHostIOSourceDescriptors>) throws

Parameters

Discussion

During creation, periodic (interrupt and isochronous) endpoints reserve bus bandwidth to allow for maximum packet size, mult (the maximum number of packets that this endpoint supports), burst size, and the endpoint service interval.

If an endpoint won’t use all of the allocated bandwidth, use adjust(with:) to reduce the bandwidth reserved for the endpoint. Copy the original endpoint descriptors, adjust maximum packet size, mult, burst size, and interval, then pass to adjust(with:). The altered descriptors must pass validation from the kernel for policy changes to process.

See Also

Managing Periodic Bandwidth