Kernel Functions for Drivers
usbpipegetmaxbulktransfersize(9F)
NAME
usbpipegetmaxbulktransfersize - Get maximum bulk
transfer size
SYNOPSIS
#include
int usbpipegetmaxbulktransfersize(devinfot dip, sizet *size);
INTERFACE LEVEL
Solaris DI specific (Solaris DI)
PARAMETERS
dip Pointer to the device's devinfo structure.
size Returns the bulk transfer size.
DESCRIPTION
The usbpipegetmaxbulktransfersize() function returns
the maximum data transfer size in bytes that the host con-
troller driver can support per bulk request. This informa-
tion can be used to limit or break down larger requests to
manageable sizes.
RETURN VALUES
USBSUCES Size is returned in size argument.
USBINVALIDARGS dip and/or size argument is NUL.
USBFAILURE Size could not be returned. Zero is
returned in size arg.
CONTEXT
May be called from user, kernel or interrupt context.
EXAMPLES
int xxxattach(devinfot *dip, int command)
{
...
usbpipegetmaxbulktransfersize(dip, &state>maxxfersize);
...
}
SunOS 5.11 Last change: 5 Jan 2004 1
Kernel Functions for Drivers
usbpipegetmaxbulktransfersize(9F)
void xxxminphys(struct buf bp)
{
...
if (bp->bbcount > state->maxxfersize) {
bp->bbcount = state->maxxfersize;
}
...
}
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture PCI-based systems
Interface stability Committed
Availability SUNWusb
SEE ALSO
attributes(5), usbpipebulkxfer(9F),
usballocrequest(9F), usbbulkrequest(9S)
SunOS 5.11 Last change: 5 Jan 2004 2
Kernel Functions for Drivers
usbpipegetmaxbulktransfersize(9F)
SunOS 5.11 Last change: 5 Jan 2004 3
|