EnqueueInputBuffer

Send a buffer to the kernel side of the IOStream on the input queue.

Declaration

IOReturn ( *EnqueueInputBuffer)(
   IOStreamRef stream,
   IOStreamBufferID bufferID,
   IOByteCount dataOffset,
   IOByteCount dataLength,
   IOByteCount controlOffset,
   IOByteCount controlLength );

Parameters

stream

The IOStreamRef of the stream to operate on.

bufferID

The IOStreamBufferID of the buffer to place on the queue.

dataLength

The length of the valid data in the buffer.

Return Value

Returns kIOReturnSuccess if the buffer was successfully placed on the input queue.

See Also

Buffer operations on streams

DequeueOutputEntry

Get the next IOStreamBufferQueueEntry available from the output queue.