usb_pipe_get_max_bulk_streams - Get maximum streams count on a USB bulk pipe
#include <sys/usb/usba.h>
int usb_pipe_get_max_bulk_streams(usb_pipe_handle_t * pipe_handle, uint16_t *max_streams );
Solaris DDI specific (Solaris DDI)
Pointer to a USB bulk pipe handle.
Returns the maximum streams count.
The usb_pipe_get_max_bulk_streams() function returns the maximum streams count that the host and client can support per bulk pipe. This information can be used by the USB client to decide how many streams can be allocated.
Maximum streams count is returned in max_stream argument.
pipe_handle is NULL and/or the max_stream argument isNULL.
Pipe is closing or closed.
The host does not support SuperSpeed streams.
Exception handlers of any queued requests which were flushed are called with a completion reason of USB_CR_FLUSHED.
The allocation routines may always be called from kernel, user, or interrupt context.
uint16_t stream_max_cnt; if (usb_pipe_get_max_bulk_streams(pipe, &stream_cnt) != USB_SUCCESS) { }
See attributes(7) for descriptions of the following attributes:
|
attributes(7), usb_pipe_bulk_alloc_streams(9F), usb_pipe_bulk_free_streams(9F), usb_pipe_bulk_reset_stream(9F)