Skip Navigation Links | |
Exit Print View | |
man pages section 9: DDI and DKI Kernel Functions Oracle Solaris 11.1 Information Library |
csx_AccessConfigurationRegister(9F)
csx_Parse_CISTPL_BYTEORDER(9F)
csx_Parse_CISTPL_CFTABLE_ENTRY(9F)
csx_Parse_CISTPL_DEVICEGEO(9F)
csx_Parse_CISTPL_DEVICEGEO_A(9F)
csx_Parse_CISTPL_DEVICE_OA(9F)
csx_Parse_CISTPL_DEVICE_OC(9F)
csx_Parse_CISTPL_LINKTARGET(9F)
csx_Parse_CISTPL_LONGLINK_A(9F)
csx_Parse_CISTPL_LONGLINK_C(9F)
csx_Parse_CISTPL_LONGLINK_MFC(9F)
ddi_get_soft_iblock_cookie(9F)
ddi_intr_get_supported_types(9F)
ddi_prop_lookup_byte_array(9F)
ddi_prop_lookup_int64_array(9F)
ddi_prop_lookup_string_array(9F)
ddi_prop_update_byte_array(9F)
ddi_prop_update_int64_array(9F)
ddi_prop_update_string_array(9F)
ldi_prop_lookup_byte_array(9F)
ldi_prop_lookup_int64_array(9F)
ldi_prop_lookup_string_array(9F)
mac_prop_info_set_default_link_flowctrl(9F)
mac_prop_info_set_default_str(9F)
mac_prop_info_set_default_uint8(9F)
mac_prop_info_set_range_uint32(9F)
net_event_notify_unregister(9F)
net_instance_notify_register(9F)
net_instance_notify_unregister(9F)
net_instance_protocol_unregister(9F)
net_protocol_notify_register(9F)
nvlist_lookup_boolean_array(9F)
nvlist_lookup_boolean_value(9F)
nvlist_lookup_nvlist_array(9F)
nvlist_lookup_string_array(9F)
nvlist_lookup_uint16_array(9F)
nvlist_lookup_uint32_array(9F)
nvlist_lookup_uint64_array(9F)
nvpair_value_boolean_array(9F)
pci_plist_lookup_int16_array(9F)
pci_plist_lookup_int32_array(9F)
pci_plist_lookup_int64_array(9F)
pci_plist_lookup_int8_array(9F)
pci_plist_lookup_string_array(9F)
pci_plist_lookup_uint16_array(9F)
pci_plist_lookup_uint32_array(9F)
pci_plist_lookup_uint64_array(9F)
pci_plist_lookup_uint8_array(9F)
scsi_get_device_type_scsi_options(9F)
scsi_get_device_type_string(9F)
scsi_sense_cmdspecific_uint64(9F)
usb_get_current_frame_number(9F)
usb_pipe_get_max_bulk_transfer_size(9F)
usb_pipe_stop_intr_polling(9F)
usb_pipe_stop_isoc_polling(9F)
- Get maximum number of packets allowed per isochronous request
#include <sys/usb/usba.h> uint_t usb_get_max_pkts_per_isoc_request(dev_info_t *dip);
Solaris DDI specific (Solaris DDI)
Pointer to the device's dev_info structure.
The usb_get_max_pkts_per_isoc_request() function returns the maximum number of isochronous packets per request that the host control driver can support. This number can be used to determine the maximum amount of data which can be handled by a single isochronous request. That length is found by:
max = usb_get_max_pkts_per_isoc_request(dip) * endpoint_max_packet_size;
where endpoint_max_packet_size is the wMaxPacketSize field of the isochronous endpoint over which the transfer will take place.
On success, the usb_get_current_frame_number() function returns the maximum number of isochronous pkts per request. On failure it returns 0. The function fails if dip is NULL.
May be called from user, kernel or interrupt context.
/* * Set up to receive periodic isochronous data, requesting * the maximum amount for each transfer. */ int pkt; /* Get max packet size from endpoint descriptor. */ uint_t ep_max_pkt_size = ep_descr.wMaxPacketSize; uint_t isoc_pkts_count = usb_get_max_pkts_per_isoc_request(dip); /* * Allocate an isoc request, specifying the max number of packets * and the greatest size transfer possible. */ usb_isoc_req_t *isoc_req = usb_alloc_isoc_req(dip, isoc_pkts_count, isoc_pkts_count * ep_max_pkt_size, USB_FLAGS_SLEEP); /* Init each packet descriptor for maximum size. */ for (pkt = 0; pkt < isoc_pkts_count; pkt++) { isoc_req->isoc_pkt_descr[pkt].isoc_pkt_length = ep_max_pkt_size; } /* Set the length of a packet in the request too. */ isoc_req->isoc_pkts_length = ep_max_pkt_size; /* Other isoc request initialization. */ ... ... if (usb_pipe_isoc_xfer(pipe, isoc_req, USB_FLAGS_NOSLEEP) != USB_SUCCESS) { ... }
See attributes(5) for descriptions of the following attributes:
|
attributes(5), usb_pipe_isoc_xfer(9F), usb_alloc_request(9F), usb_get_current_frame_number(9F). usb_ep_descr(9S), usb_isoc_request(9S)